예제 #1
0
        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}";
        }
예제 #2
0
        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}";
        }
예제 #3
0
        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}";
        }