Beispiel #1
0
 private async void AddButton_Clicked(object sender, EventArgs e)
 {
     if (DoOnce())
     {
         var page = new FolderAddEditPage();
         await Navigation.PushModalAsync(new NavigationPage(page));
     }
 }
Beispiel #2
0
 private async void RowSelected(object sender, SelectionChangedEventArgs e)
 {
     ((ExtendedCollectionView)sender).SelectedItem = null;
     if (!DoOnce())
     {
         return;
     }
     if (!(e.CurrentSelection?.FirstOrDefault() is FolderView folder))
     {
         return;
     }
     var page = new FolderAddEditPage(folder.Id);
     await Navigation.PushModalAsync(new NavigationPage(page));
 }
Beispiel #3
0
 private async void RowSelected(object sender, SelectedItemChangedEventArgs e)
 {
     ((ListView)sender).SelectedItem = null;
     if (!DoOnce())
     {
         return;
     }
     if (!(e.SelectedItem is FolderView folder))
     {
         return;
     }
     var page = new FolderAddEditPage(folder.Id);
     await Navigation.PushModalAsync(new NavigationPage(page));
 }