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(); }
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(); }