Exemple #1
0
        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);
        }
Exemple #2
0
 internal static async Task SwitchToProfile(string printerID)
 {
     ProfileManager.Instance.LastProfileID = printerID;
     Instance = (await ProfileManager.LoadProfileAsync(printerID)) ?? PrinterSettings.Empty;
 }
Exemple #3
0
 internal static async Task SwitchToProfile(string printerID)
 {
     ProfileManager.Instance.SetLastProfile(printerID);
     Instance = (await ProfileManager.LoadProfileAsync(printerID)) ?? ProfileManager.LoadEmptyProfile();
 }