private void BurnButtonClick(object sender, RoutedEventArgs e) { _orderFolder = (ExecutionEngine.Instance.PrimaryAction != PrimaryActionType.ProcessOrder) ? _stage.OrderStorage.CurrentOrderPath : _stage.DelayedOrderFolder; string args = string.Format(@"{0} ""{1}"" ""{2}""", ExecutionEngine.Config.DriveLetter.Value, _orderFolder, ExecutionEngine.Config.DiscLabel.Value); try { try { File.Move(_orderFolder + "//" + Constants.OrderInfoXmlFileName, Config.TempStoragePath + "//" + Constants.OrderInfoXmlFileName); } catch { } _cdBurner = new AddonManager(Config.CDBurnerFile, args); _cdBurner.Start(); } catch (Exception ex) { ExecutionEngine.ErrorLogger.WriteExceptionInfo(ex); ShowErrorMessage(); return; } _timer.Start(); _burnInstructionsLabel.TextContent = (string)FindResource(Constants.BurningScreenInProcessTextKey); _progressBar.Visibility = Visibility.Visible; _burnButton.Visibility = Visibility.Hidden; _backButton.IsEnabled = false; }
private void PrintingScreenLoadedHandler(object sender, RoutedEventArgs e) { _orderFolder = (ExecutionEngine.Instance.PrimaryAction != PrimaryActionType.ProcessOrder) ? _stage.OrderStorage.CurrentOrderPath : _stage.DelayedOrderFolder; string args = string.Format(@"""{0}\\"" ""{1}""", _orderFolder, Constants.MaxCopiesCount); try { _photoPrinter = new AddonManager(Config.PhotoPrinterFile, args); _photoPrinter.Start(); } catch (Exception ex) { ExecutionEngine.ErrorLogger.WriteExceptionInfo(ex); ShowErrorMessage(); return; } _timer.Start(); }