Esempio n. 1
0
 protected async override void OnExecute(object parameter)
 {
     if (parameter is ITableDescriptor descriptor)
     {
         if (TableUtility.CanEditContent(this.authenticator, descriptor) == true)
         {
             await TableUtility.EditContentAsync(this.authenticator, descriptor);
         }
     }
 }
Esempio n. 2
0
 protected override bool OnCanExecute(object parameter)
 {
     if (parameter is ITableDescriptor descriptor)
     {
         if (TableUtility.CanEditContent(this.authenticator, descriptor) == true)
         {
             return(true);
         }
     }
     return(false);
 }