Beispiel #1
0
        public ICommand CreateCommand()
        {
            PathObjectTypeDialog dialog = new PathObjectTypeDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                ICommand cmd = new AddPathObjectTypeCommand(app, parent, dialog.pathObjectType);
                return(cmd);
            }
            else
            {
                return(null);
            }
        }
 public ICommand CreateCommand()
 {
     PathObjectTypeDialog dialog = new PathObjectTypeDialog();
     if (dialog.ShowDialog() == DialogResult.OK) {
         ICommand cmd = new AddPathObjectTypeCommand(app, parent, dialog.pathObjectType);
         return cmd;
     }
     else
         return null;
 }