Add ClientParameters
This commit is contained in:
@ -16,6 +16,7 @@ namespace Elwig {
|
||||
public static readonly string ExePath = @"C:\Program Files\Elwig\";
|
||||
public static readonly Config Config = new(DataPath + "config.ini");
|
||||
public static IEnumerable<IScale> Scales { get; private set; }
|
||||
public static ClientParameters Client { get; private set; }
|
||||
|
||||
public static bool IsPrintingReady => Documents.Html.IsReady && Documents.Pdf.IsReady;
|
||||
public static Dispatcher MainDispatcher { get; private set; }
|
||||
@ -38,6 +39,8 @@ namespace Elwig {
|
||||
Utils.RunBackground("HTML Initialization", () => Documents.Html.Init(PrintingReadyChanged));
|
||||
Utils.RunBackground("PDF Initialization", () => Documents.Pdf.Init(PrintingReadyChanged));
|
||||
|
||||
Client = new();
|
||||
|
||||
var list = new LinkedList<IScale>();
|
||||
foreach (var s in Config.Scales) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user