diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index b1dc204..6698b0d 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -60,7 +60,6 @@ namespace Elwig { public static IList EventScales => Scales.Where(s => s is IEventScale).Cast().ToList(); public static ClientParameters Client { get; set; } - public static bool IsPrintingReady => Html.IsReady && Pdf.IsReady; public static Dispatcher MainDispatcher { get; private set; } public App() : base() { @@ -119,8 +118,8 @@ namespace Elwig { return Task.CompletedTask; }); - Utils.RunBackground("HTML Initialization", () => Html.Init(PrintingReadyChanged)); - Utils.RunBackground("PDF Initialization", () => Pdf.Init(PrintingReadyChanged)); + Utils.RunBackground("HTML Initialization", () => Html.Init()); + Utils.RunBackground("PDF Initialization", () => Pdf.Init()); Utils.RunBackground("JSON Schema Initialization", BillingData.Init); if (Config.UpdateAuto && Config.UpdateUrl != null) { @@ -181,21 +180,6 @@ namespace Elwig { BranchMobileNr = entry.Item8; } - private void PrintingReadyChanged() { - Dispatcher.BeginInvoke(OnPrintingReadyChanged, new EventArgs()); - } - - protected void OnPrintingReadyChanged(EventArgs evt) { - foreach (Window w in Windows) { - foreach (var b in ControlUtils.FindAllChildren