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(); } }
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 btnLuu_Click(object sender, RoutedEventArgs e) { if (mPhanQuyen.ChiTietQuyen.DangNhap) { UserControlLibrary.WindowLoginDialog loginWindow = new UserControlLibrary.WindowLoginDialog(mTransit); if (loginWindow.ShowDialog() == false) { Luu(); } } else Luu(); }