Beispiel #1
0
 private void barButnItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     CapNhatTrangThaiTK();
     if (a == false)
     {
         FrmDangNhap f = new FrmDangNhap();
         this.Hide();
         Class1.mGroup   = "";
         Class1.mlogin   = "";
         Class1.myreader = null;
         Class1.password = "";
         Class1.username = "";
         f.ShowDialog();
     }
 }
Beispiel #2
0
        private void btnDoiMatKhau_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmDoiMatKhau f = new FrmDoiMatKhau();

            f.ShowDialog();
            if (f.tam == 0)
            {
                Class1.mGroup   = null;
                Class1.mlogin   = null;
                Class1.myreader = null;
                Class1.password = null;
                Class1.username = null;
                FrmDangNhap f1 = new FrmDangNhap();
                this.Hide();
                f1.ShowDialog();
            }
        }
Beispiel #3
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;

            if (Class1.password != "" && Class1.mlogin != "")
            {
                LoadData();
                LayTenNhanVien1();
                DayLenToolStrips();
            }
            else
            {
                FrmDangNhap f = new FrmDangNhap();
                this.Close();
                Class1.mGroup   = "";
                Class1.mlogin   = "";
                Class1.myreader = null;
                Class1.password = "";
                Class1.username = "";
                f.ShowDialog();
            }
        }
Beispiel #4
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            FrmDangNhap f = new FrmDangNhap();

            f.ShowDialog();
        }