public AddSubDivision() { InitializeComponent(); Hotels.FillInfo(); NameTextBox.Text = Locations.Name; RoomsCountTextBox.Text = Hotels.RoomCount.ToString(); BedsCountTextBox.Text = Hotels.BedsCount.ToString(); CustomerLocationNameLabel.Text = $"Мои заказчики > {Customer.Name} > {Locations.Name}"; }
public LocationInfo() { InitializeComponent(); Hotels.FillInfo(); NameTextBox.Text = Locations.Name; RoomsCountTextBox.Text = Hotels.RoomCount.ToString(); BedsCountTextBox.Text = Hotels.BedsCount.ToString(); CardsCountTextBox.Text = Hotels.CardsCount.ToString(); RoomsDataGridView.DataSource = Hotels.GetRooms(); CustomerLocationNameLabel.Text = $"Мои заказчики > {Customer.Name} > {Locations.Name}"; }
public LocationInfo() { InitializeComponent(); Hotels.FillInfo(); NameTextBox.Text = Locations.Name; RoomsCountTextBox.Text = Hotels.RoomCount.ToString(); BedsCountTextBox.Text = Hotels.BedsCount.ToString(); CardsCountTextBox.Text = Hotels.CardsCount.ToString(); DataTable rooms = Hotels.GetRooms(); for (int i = 0; i < rooms.Rows.Count; i++) { RoomsDataGridView.Rows.Add(rooms.Rows[i].ItemArray); } CustomerLocationNameLabel.Text = $"Мои заказчики > {Customer.Name} > {Locations.Name}"; }