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