Ejemplo n.º 1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            /*
             * if (FrmDangNhap.IsLogin == true)
             * {
             *  MoKhoaButton();
             *  btnDangNhap.Enabled = false;
             * }
             * else
             * {
             *  KhoaButton();
             * }*/

            Form frm = Checkform((typeof(FrmHoaDon)));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FrmTinhTrangPhong frmTTP = new FrmTinhTrangPhong();
                frmTTP.MdiParent = this;
                frmTTP.Show();
            }
        }
Ejemplo n.º 2
0
        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = Checkform((typeof(FrmTinhTrangPhong)));

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