Example #1
0
        public CreateCaseViewModel()
        {
            _cases = DataFromCollections.Instance;

            _selectedMark = null;
            _selectedImg  = null;

            _dialogService = new DefaultDialogService();

            _case = new Case {
                Name = "", Description = ""
            };
        }
Example #2
0
        public EditCaseViewModel(Case orCase)
        {
            _dialogService = new DefaultDialogService();
            _data          = DataFromCollections.Instance;

            _selectedMark = null;
            _selectedImg  = null;

            _wasChange = false;

            _originalCase = orCase;
            _cloneCase    = (Case)orCase.Clone();

            _cloneCase.PropertyChanged += Case_PropertyChanged;
        }