Add Utils.RunBackground
This commit is contained in:
@ -19,13 +19,13 @@ namespace WGneu {
|
||||
}
|
||||
|
||||
protected override void OnStartup(StartupEventArgs e) {
|
||||
Task.Run(() => Documents.Html.Init(PrintingReadyChanged));
|
||||
Task.Run(() => Documents.Pdf.Init(PrintingReadyChanged));
|
||||
Utils.RunBackground("HTML Initialization", () => Documents.Html.Init(PrintingReadyChanged));
|
||||
Utils.RunBackground("PDF Initialization", () => Documents.Pdf.Init(PrintingReadyChanged));
|
||||
base.OnStartup(e);
|
||||
}
|
||||
|
||||
protected override void OnExit(ExitEventArgs e) {
|
||||
Task.Run(() => Documents.Pdf.Close());
|
||||
Utils.RunBackground("PDF Close", () => Documents.Pdf.Close());
|
||||
base.OnExit(e);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user