예제 #1
0
 public AddNoteViewModel()
 {
     AddNoteCommand = new Command(arg=> CreateNoteMethod());
     BooksModel = ((App) (Application.Current)).BooksModel; // Модель данных
 }
예제 #2
0
 public AddBookViewModel()
 {
     AddBookCommand = new Command(arg=> CreateBookMethod());
     ChoosePathCommand = new Command(arg => ChoosePathMethod());
     BooksModel = ((App) (Application.Current)).BooksModel; // Модель данных
 }