public ICommand CreateCommand() { ICommand ret = null; using (AddRegionDialog dlg = new AddRegionDialog()) { dlg.PriorityNumeric = app.Config.DefaultBoundaryPriority; if (dlg.ShowDialog() == DialogResult.OK) { ret = new AddRegionCommand(app, parent, dlg.NameTextBoxText, dlg.PriorityNumeric); } } return ret; }
public ICommand CreateCommand() { ICommand ret = null; using (AddRegionDialog dlg = new AddRegionDialog()) { dlg.PriorityNumeric = app.Config.DefaultBoundaryPriority; if (dlg.ShowDialog() == DialogResult.OK) { ret = new AddRegionCommand(app, parent, dlg.NameTextBoxText, dlg.PriorityNumeric); } } return(ret); }