public CreateCaseViewModel() { _cases = DataFromCollections.Instance; _selectedMark = null; _selectedImg = null; _dialogService = new DefaultDialogService(); _case = new Case { Name = "", Description = "" }; }
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; }