public NotesVM() { // create tables in db as first task DatabaseHelper.CreateTables <Notebook>(); DatabaseHelper.CreateTables <Note>(); NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); BeginEditCommand = new BeginEditCommand(this); HasEditedCommand = new HasEditedCommand(this); CancelNotebookEditCommand = new CancelNotebookEditCommand(); HasEditedNoteCommand = new HasEditedNoteCommand(this); CancelNoteEditCommand = new CancelNoteEditCommand(); Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); }