Esempio n. 1
0
        private void btnDatPhong_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(frmBook));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmBook f = new frmBook();
                IsMdiContainer = true;
                f.MdiParent    = this;
                f.Show();
            }
        }
        private void đặtPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBook frmBook = new frmBook();

            frmBook.ShowDialog();
        }