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