예제 #1
0
                // обработка нажатия кнопки добавления
                private async void CreateLibrary(object sender, EventArgs e)
        {
            Library     library     = new Library();
            LibraryPage libraryPage = new LibraryPage();

            libraryPage.BindingContext = library;
            await Navigation.PushAsync(libraryPage);
        }
예제 #2
0
                // обработка нажатия элемента в списке
                private async void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            Library     selectedFriend = (Library)e.SelectedItem;
            LibraryPage libraryPage    = new LibraryPage();

            libraryPage.BindingContext = selectedFriend;
            await Navigation.PushAsync(libraryPage);
        }