示例#1
0
 private async Task AddRule()
 {
     var dialog = new ImportRuleSelectDialog(AccountApi.RuleType.AD_Import);
     await DialogHost.Show(
         dialog,
         "RootDialog",
         (sender, eventArgs) =>
     {
         var result = eventArgs.Parameter as string;
         if (result == "true")
         {
             var rule          = state.AddimportRule(dialog.SelectedRule);
             eventArgs.Handled = true;
         }
     }
         ).ConfigureAwait(false);
 }