コード例 #1
0
        private void btnDangXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int x = xtraTabControl1.TabPages.Count;

            for (int i = 0; i < x; i++)
            {
                xtraTabControl1.TabPages.RemoveAt(0);
            }
            m_FrmDangNhap = new FormDangNhap();
            FormMain_Load(sender, e);
            btnDangNhap.Enabled = true;
        }
コード例 #2
0
 private void btnDangNhapLai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (MessageBox.Show("Đăng nhập lại", "Thông báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
     {
         int x = xtraTabControl1.TabPages.Count;
         for (int i = 0; i < x; i++)
         {
             xtraTabControl1.TabPages.RemoveAt(0);
         }
         m_FrmDangNhap = new FormDangNhap();
         FormMain_Load(sender, e);
         DangNhap();
     }
 }
コード例 #3
0
 private void btnDangNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     m_FrmDangNhap = new FormDangNhap();
     DangNhap();
 }