Exemplo n.º 1
0
        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(frmDanhSachBan));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmDanhSachBan f = new frmDanhSachBan();
                f.MdiParent = this;
                f.Show();
            }
        }
Exemplo n.º 2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(frmDanhSachBan));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmDanhSachBan f = new frmDanhSachBan();
                f.MdiParent = this;
                f.Show();
            }
        }