Beispiel #1
0
        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);
        }
Beispiel #2
0
 void ViewAllNotes()
 {
     currentViewModel = new AllNotesViewModel(noteList);
 }