public static async Task SwitchToProfile(string printerID) { ProfileManager.Instance.LastProfileID = printerID; var printer = new PrinterConfig(await ProfileManager.LoadProfileAsync(printerID)); await printer.LoadPlateFromHistory(); await ApplicationController.Instance.SetActivePrinter(printer); }
internal static async Task SwitchToProfile(string printerID) { ProfileManager.Instance.LastProfileID = printerID; Instance = (await ProfileManager.LoadProfileAsync(printerID)) ?? PrinterSettings.Empty; }
internal static async Task SwitchToProfile(string printerID) { ProfileManager.Instance.SetLastProfile(printerID); Instance = (await ProfileManager.LoadProfileAsync(printerID)) ?? ProfileManager.LoadEmptyProfile(); }