public void InitPrintDataViewModel()
        {
            _dataViewModal = new PrinterSettingDataViewModal();

            this.DataContext  = DataViewModal;
            _oldDataViewModal = DataViewModal.Clone();
            InitFilmSizeComboBox();
        }
        public void OnFilmingCardModalityChanged(object sender, FilmingCard.FilmingCardChangedEventArgs e)
        {
            //var filmingCard = sender as FilmingCard;
            //Debug.Assert(filmingCard != null);
            bool ret = e.ChangedModality != FilmingUtility.EFilmModality;

            DataViewModal.IsEnableAnnotationSelection = ret;
            //DataViewModal.IsEnableOrientationSelection  = ret;
            DataViewModal.IfSaveEFilmWhenFilming     = ret && Printers.Instance.IfSaveEFilmWhenFilming;
            DataViewModal.IsEnableSaveEFilmSelection = ret;
            //DataViewModal.IfClearAfterAddFilmingJob     = ret && Printers.Instance.IfClearAfterAddFilmingJob;
            //DataViewModal.IsEnableClearFilmSelection    = ret;
            DataViewModal.IsEnableColorPrintSelection = ret;

            if (ret)
            {
                DataViewModal.InitIsColorPrintingOptionChecked();
            }
            else
            {
                DataViewModal.IfColorPrint = IsColorEFilm(sender);
            }
            //if (!ret) DataViewModal.IfColorPrint = IsColorEFilm(sender);

            _oldDataViewModal.IsEnableAnnotationSelection  = DataViewModal.IsEnableAnnotationSelection;
            _oldDataViewModal.IsEnableOrientationSelection = DataViewModal.IsEnableOrientationSelection;
            _oldDataViewModal.IfSaveEFilmWhenFilming       = DataViewModal.IfSaveEFilmWhenFilming;
            _oldDataViewModal.IsEnableSaveEFilmSelection   = DataViewModal.IsEnableSaveEFilmSelection;
            _oldDataViewModal.IfClearAfterAddFilmingJob    = DataViewModal.IfClearAfterAddFilmingJob;
            _oldDataViewModal.IfClearAfterSaveEFilm        = DataViewModal.IfClearAfterSaveEFilm;

            _oldDataViewModal.IsEnableClearFilmSelection  = DataViewModal.IsEnableClearFilmSelection;
            _oldDataViewModal.IsEnableColorPrintSelection = DataViewModal.IsEnableColorPrintSelection;
            _oldDataViewModal.IfColorPrint = DataViewModal.IfColorPrint;

            DataViewModal    = _oldDataViewModal.Clone();
            this.DataContext = DataViewModal;
        }
 public void CloneViewModel()
 {
     _oldDataViewModal = DataViewModal.Clone();
 }