Exemplo n.º 1
0
 private async void ModifyButton_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new AddOrModifyTemplate((TestItemTemplate)TemplatesListView.SelectedItem);
     await DialogHost.Show(dialog, "TemplateDialog", delegate(object s, DialogOpenedEventArgs args)
     {
         dialog.SetSession(args.Session);
     });
 }
Exemplo n.º 2
0
 private async void AddButton_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new AddOrModifyTemplate();
     await DialogHost.Show(dialog, "TemplateDialog", delegate(object s, DialogOpenedEventArgs args)
     {
         dialog.SetSession(args.Session);
     });
 }