private void Add(object sender, RoutedEventArgs e) { var dialog = new WpfCommandDialog (new LinkedCommand(), Page.Commands); bool? result = dialog.ShowDialog (); if (result.HasValue && result.Value) Page.LinkedCommands.Add (dialog.Command); }
private void Edit(LinkedCommand command) { if (command == null) return; var dialog = new WpfCommandDialog (command, Page.Commands); dialog.ShowDialog (); }
private void Add(object sender, RoutedEventArgs e) { var dialog = new WpfCommandDialog(new LinkedCommand(), Page.Commands); bool?result = dialog.ShowDialog(); if (result.HasValue && result.Value) { Page.LinkedCommands.Add(dialog.Command); } }
private void Edit(LinkedCommand command) { if (command == null) { return; } var dialog = new WpfCommandDialog(command, Page.Commands); dialog.ShowDialog(); }