Example #1
0
        private void BtnEditFindRoom_Click(object sender, EventArgs e)
        {
            var RoomForm = new RoomForm();

            RoomForm.Tag = "EditForm";
            RoomForm.ShowDialog(this);
        }
Example #2
0
 private void BtnAddRoom_Click(object sender, EventArgs e)
 {
     if (RoomTypeBUS.GetRoomTypeList().Rows.Count > 0)
     {
         var RoomForm = new RoomForm();
         RoomForm.Tag = "AddForm";
         RoomForm.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("Chưa có loại phòng!",
                         "THÊM PHÒNG THẤT BẠI",
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }