Ejemplo n.º 1
0
 public fRent(fViewRoom fv)
 {
     InitializeComponent();
     fview = fv;
     loadComboBoxInDataGridView();
     setComboBoxFormality();
 }
Ejemplo n.º 2
0
        private void btn_Click(object sender, EventArgs e)
        {
            int RoomCode = ((sender as Button).Tag as RoomDTO).RoomCode;

            this.Hide();
            fViewRoom fView = new fViewRoom(LoadRoomInfo(RoomCode), RoomCode);

            fView.ShowDialog();
            this.Show();
        }
Ejemplo n.º 3
0
 public fViewRoom(fViewRoom fview)
 {
     InitializeComponent();
     this.label13.Text       = fview.label13.Text;
     this.label12.Text       = fview.label12.Text;
     this.label11.Text       = fview.label11.Text;
     this.label10.Text       = fview.label10.Text;
     this.label9.Text        = fview.label9.Text;
     this.label8.Text        = fview.label8.Text;
     this.RentButton.Visible = false;
 }
Ejemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            CustomerDTO Temp = LoadRoomInfor(this.textBox1.Text);

            if (Temp != null)
            {
                this.Hide();
                fViewRoom fView = new fViewRoom(LoadRoomInfo(Temp.Roomcode), LoadRoomInfor(Temp.Roomcode), this);
                fView.ShowDialog();
            }
            else
            {
                MessageBox.Show("Không Tìm Thấy Khách Hàng");
            }
            this.Show();
            this.AddCustomerToBox();
        }
Ejemplo n.º 5
0
        private void btn_Click(object sender, EventArgs e)
        {
            int RoomCode = ((sender as Button).Tag as RoomDTO).RoomCode;

            this.Hide();
            BillDTO   billDTO;
            fViewRoom fView;

            if (LoadRoomDTO(RoomCode).Count != 0)
            {
                billDTO = LoadRoomDTO(RoomCode).First();
                fView   = new fViewRoom(LoadRoomInfo(RoomCode), LoadRoomInfor(RoomCode), RoomCode, this, billDTO.PayStatus1);
            }
            else
            {
                fView = new fViewRoom(LoadRoomInfo(RoomCode), LoadRoomInfor(RoomCode), RoomCode, this);
            }
            fView.ShowDialog();
            this.Show();
            this.AddCustomerToBox();
        }