コード例 #1
0
 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);
 }
コード例 #2
0
        private void Edit(LinkedCommand command)
        {
            if (command == null)
            return;

              var dialog = new WpfCommandDialog (command, Page.Commands);
              dialog.ShowDialog ();
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
        private void Edit(LinkedCommand command)
        {
            if (command == null)
            {
                return;
            }

            var dialog = new WpfCommandDialog(command, Page.Commands);

            dialog.ShowDialog();
        }