public MainWindowViewModel() { noteList = new ObservableCollection <Note>(); selectedNote = null; currentViewModel = new AllNotesViewModel(noteList); ViewAllNotesCommand = new RelayCommand(ViewAllNotes); AddNoteCommand = new RelayCommand(AddNote); EditNoteCommand = new RelayCommand(EditNote); DeleteNoteCommand = new RelayCommand(DeleteNote); ExitAppCommand = new RelayCommand(ExitApp); }
void ViewAllNotes() { currentViewModel = new AllNotesViewModel(noteList); }