Example #1
0
 private void BaseEntities_SelectionChanged(object sender, Controls.CustomSelectionChangedEventArgs e)
 {
     if (e.SelectedItem is IBaseEntity baseEntity && BindingContext is DocumentSectionsViewModel vm)
     {
         vm.ChangeBaseEntity(baseEntity);
     }
 }
Example #2
0
 private async void Entities_SelectionChanged(object sender, Controls.CustomSelectionChangedEventArgs e)
 {
     if (e.SelectedItem is DocumentSectionsViewModel.NewEntityDummy && BindingContext is DocumentSectionsViewModel vm)
     {
         vm.SelectedEntity = null;
         var popup = new CreateEntityPopup(vm.SessionHandler, vm.SelectedBaseEntity.Id, vm.SelectedBaseEntity.Name);
         popup.PopupClosed += Popup_PopupClosed;
         await Navigation.PushPopupAsync(popup);
     }
 }