本文整理汇总了C#中Room.GetColumn方法的典型用法代码示例。如果您正苦于以下问题:C# Room.GetColumn方法的具体用法?C# Room.GetColumn怎么用?C# Room.GetColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Room
的用法示例。
在下文中一共展示了Room.GetColumn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadRoomPrice
private void LoadRoomPrice(int roomCategoryID)
{
Room r = new Room();
if (r.LoadPriceByRoomCategoryID(roomCategoryID))
{
pnlRoomPrice.Visible = true;
do
{
tblRoomPrices.Rows.Add(AddNewRow(r.GetColumn("RoomList").ToString() + " - "
+ r.Price.ToString("N") + " " + Resources.Vikkisoft.Grn.ToString()));
}
while (r.MoveNext());
}
}
示例2: LoadDDLs
private void LoadDDLs()
{
LoadNumberDDL(ddlRooms, 1, 6);
LoadNumberDDL(ddlAdults, 1, 4);
LoadNumberDDL(ddlChildren, 0, 3);
LoadNumberDDL(ddlRooms1, 1, 6);
LoadNumberDDL(ddlAdults1, 1, 4);
LoadNumberDDL(ddlChildren1, 0, 3);
ddlRoomPrices.Items.Clear();
ddlRoomPrices.Items.Add(new RadComboBoxItem("", "0"));
Room r = new Room();
if(r.LoadWithRoomCategoty())
{
do
{
ddlRoomPrices.Items.Add(new RadComboBoxItem("№ " + r.s_Number + " - "
+ r.GetColumn("RoomCategoryName" + Utils.LangPrefix).ToString()
+ (r.IsColumnNull("Price") ? "" : " - " + r.Price.ToString("N") + " "
+ Resources.Vikkisoft.Grn), r.RoomID.ToString()));
}
while (r.MoveNext());
}
}