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