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