示例#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();
            }
        }
示例#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();
            }
        }