Renamed RoutedEventArgs e to RoutedEventArgs evt

This commit is contained in:
2023-03-11 15:29:35 +01:00
parent e3e30bfc56
commit 8d61fdd35e
6 changed files with 51 additions and 103 deletions

View File

@ -21,22 +21,22 @@ namespace WGneu {
MainDispatcher = Dispatcher;
}
protected override void OnStartup(StartupEventArgs e) {
protected override void OnStartup(StartupEventArgs evt) {
Utils.RunBackground("HTML Initialization", () => Documents.Html.Init(PrintingReadyChanged));
Utils.RunBackground("PDF Initialization", () => Documents.Pdf.Init(PrintingReadyChanged));
base.OnStartup(e);
base.OnStartup(evt);
}
protected override void OnExit(ExitEventArgs e) {
protected override void OnExit(ExitEventArgs evt) {
Utils.RunBackground("PDF Close", () => Documents.Pdf.Close());
base.OnExit(e);
base.OnExit(evt);
}
private void PrintingReadyChanged() {
Dispatcher.BeginInvoke(OnPrintingReadyChanged, new EventArgs());
}
protected void OnPrintingReadyChanged(EventArgs e) {
protected void OnPrintingReadyChanged(EventArgs evt) {
foreach (Window w in Windows) {
foreach (var b in Utils.FindVisualChilds<Button>(w).Where(b => "Print".Equals(b.Tag))) {
b.IsEnabled = IsPrintingReady;