예제 #1
0
 private void uCTile_OnChangeLogin()
 {
     UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit, true);
     if (loginWindow.ShowDialog() == true)
     {
         BONhanVien.ThemLichSuDangNhap(mTransit.NhanVien.NhanVienID);
         mTransit.LayDanhSachQuyen();
         uCTile.SetTransit(mTransit);
         SetTagButton();
         PhanQuyen();
     }
 }
예제 #2
0
 private void uCTile_OnChangeLogin()
 {
     UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit, true);
     if (loginWindow.ShowDialog() == true)
     {
         BONhanVien.ThemLichSuDangNhap(mTransit.NhanVien.NhanVienID);
         mTransit.LayDanhSachQuyen();
         uCTile.SetTransit(mTransit);
         SetTagButton();
         PhanQuyen();
     }
 }
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     if (mPhanQuyen.ChiTietQuyen.DangNhap)
     {
         UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit);
         if (loginWindow.ShowDialog() == false)
         {
             Luu();
         }
     }
     else
     {
         Luu();
     }
 }
예제 #4
0
        private void btnChucNang_Click(object sender, RoutedEventArgs e)
        {
            Button btn = (Button)sender;

            if (btn.CommandParameter == null)
            {
                return;
            }
            Data.BOChiTietQuyen mPhanQuyen = (Data.BOChiTietQuyen)btn.Tag;
            if (mPhanQuyen.ChiTietQuyen.DangNhap)
            {
                UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit);
                if (loginWindow.ShowDialog() == true)
                {
                    XuLyButonChucNang(btn);
                }
            }
            else
            {
                XuLyButonChucNang(btn);
            }
        }
        private void btnChucNang_Click(object sender, RoutedEventArgs e)
        {
            Button btn = (Button)sender;
            if (btn.CommandParameter == null)
            {
                return;
            }
            Data.BOChiTietQuyen mPhanQuyen = (Data.BOChiTietQuyen)btn.Tag;
            if (mPhanQuyen.ChiTietQuyen.DangNhap)
            {
                UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit);
                if (loginWindow.ShowDialog() == true)
                {
                    XuLyButonChucNang(btn);
                }
            }
            else
            {
                XuLyButonChucNang(btn);
            }

        }
예제 #6
0
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     if (mPhanQuyen.ChiTietQuyen.DangNhap)
     {
         UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit);
         if (loginWindow.ShowDialog() == false)
         {
             Luu();
         }
     }
     else Luu();
 }