Renamed RoutedEventArgs e to RoutedEventArgs evt
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user