protected APrintControlViewModel(PrintControlView view, IUnityContainer unityContainer)
     : base(view)
 {
     PrintControlView = view;
     PrintControlView.Loaded += PrintControlViewLoaded;
     _oldPrintingOptions = new PrintingOptions();
     _newPrintingOptions = new PrintingOptions();
     UnityContainer = unityContainer;
     WaitScreen = UnityContainer.Resolve<IWaitScreenViewModel>();
     PrintUtility = unityContainer.Resolve<PrintUtility>();
     CancelPrintCommand = new DelegateCommand<object>(ExecuteCancelPrint);
     PrintDocumentCommand = new DelegateCommand<object>(ExecutePrint);
     PageOrientationCommand = new DelegateCommand<object>(ExecutePageOrientation);
     SetPrintingOptionsCommand = new DelegateCommand<object>(ExecuteSetPrintingOptions);
     CancelPrintingOptionsCommand = new DelegateCommand<object>( ExecuteCancelPrintingOptions);
     MarkPageNumbersCommand = new DelegateCommand<object>(ExecuteMarkPageNumbers);
     AllPagesCommand = new DelegateCommand<object>(ExecuteAllPages);
     ActualPageSizeCommand = new DelegateCommand<object>(ExecuteActualPageSizeCommand);
     ChangePaperCommand = new DelegateCommand<object>(ExecuteChangePaper);
 }
 public void ResetPrintingOptions()
 {
     _settingOptions = true;
     IsSetPrintingOptionsEnabled = false;
     IsCancelPrintingOptionsEnabled = false;
     IsAdvancedPrintingOptionOpen = false;
     _oldPrintingOptions = new PrintingOptions();
     _newPrintingOptions = new PrintingOptions();
     IsMarkPageNumbersChanged = false;
     IsPageOrientationChanged = false;
     IsPrintCopyCountChanged = false;
     IsCurrentPaperChanged = false;
     IsCurrentPrinterChanged = false;
     IsCurrentPrinterNameChanged = false;
     _settingOptions = false;
     PrintOptionsSetterIsEnable(false);
     ((PrintControlView)View).EnablePrintingOptionsSet(true);
 }
        protected APrintControlViewModel(PrintControlView view)
            : base(view)
        {
            PrintControlView = view;
            PrintControlView.Loaded += PrintControlViewLoaded;
            _oldPrintingOptions = new PrintingOptions();
            _newPrintingOptions = new PrintingOptions();
            WaitScreen = new WaitScreenViewModel(new WaitScreenView());
            PrintUtility = new PrintUtility();
            CancelPrintCommand = new DelegateCommand(ExecuteCancelPrint);
            PrintDocumentCommand = new DelegateCommand(ExecutePrint);
            PageOrientationCommand = new DelegateCommand(ExecutePageOrientation);
            SetPrintingOptionsCommand = new DelegateCommand(ExecuteSetPrintingOptions);
            CancelPrintingOptionsCommand = new DelegateCommand( ExecuteCancelPrintingOptions);
            MarkPageNumbersCommand = new DelegateCommand(ExecuteMarkPageNumbers);
            AllPagesCommand = new DelegateCommand(ExecuteAllPages);
            ActualPageSizeCommand = new DelegateCommand(ExecuteActualPageSizeCommand);
            ChangePaperCommand = new DelegateCommand(ExecuteChangePaper);

        }