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;
        }
Example #2
0
        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);
        }