/// Init #region Init /// <summary> /// Constructor /// </summary> /// <param name="owner">owner</param> /// <param name="model">model</param> public PrintingControlViewModel(PrintingControlWindow owner, PrintingControlModel model) { // set owner _owner = owner; // set model _model = model; _model.Closed += _model_Closed; _model.StatusChanged += _model_StatusChanged; _model.ColorDetermined += _model_ColorDetermined; _model.ReadyToPrint += _model_ReadyToPrint; // init model model.Init(); // set top most SetTopMost(); }
/// Init #region Init /// <summary> /// Constructor /// </summary> /// <param name="owner">owner</param> /// <param name="model">model</param> public PrintingControlViewModel(PrintingControlWindow owner, PrintingControlModel model) { // show preparing progress // MainController.Singleton.ShowProgressWindow("Preparing", "Your document is being prepared for printing, please wait..."); // set owner _owner = owner; // set model _model = model; _model.Closed += _model_Closed; _model.StatusChanged += _model_StatusChanged; _model.ColorDetermined += _model_ColorDetermined; _model.ReadyToPrint += _model_ReadyToPrint; // init model model.Init(); // set top most SetTopMost(); }