コード例 #1
0
 public static async Task TryExecuteAsync <T>(this IMvxAsyncCommand <T> self, T parameter)
 {
     if (self.CanExecute(parameter))
     {
         await self.ExecuteAsync(parameter);
     }
 }
コード例 #2
0
 public static async Task TryExecuteAsync(this IMvxAsyncCommand self)
 {
     if (self.CanExecute())
     {
         await self.ExecuteAsync();
     }
 }