Esempio n. 1
0
        private void btnNewHotel_Click(object sender, EventArgs e)
        {
            Hotelfrm frm = new Hotelfrm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                cbbHotel_Load(KhachSan.All());
            }
        }
Esempio n. 2
0
 private void toolStripMenuItem3_Click(object sender, EventArgs e)
 {
     if (lvTours.SelectedItems.Count > 0 && lvHotels.SelectedItems.Count > 0)
     {
         int      cod = MyConvert.ToInt32(lvHotels.SelectedItems[0].SubItems[0].Text);
         Hotelfrm frm = new Hotelfrm();
         frm.Code = cod;
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             lvHotels_Load(KhachSan.FindByMTour(MyConvert.ToInt32(lvTours.SelectedItems[0].SubItems[0].Text)));
         }
     }
 }