public fRent(fViewRoom fv) { InitializeComponent(); fview = fv; loadComboBoxInDataGridView(); setComboBoxFormality(); }
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(); }
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; }
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(); }
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(); }