static public bool Show(Analyzer analyzer, Form parent)
        {
            var form = new BPAManagerAddCollectionDialog();

            form.analyzer = analyzer;
            form.parent   = parent;

            if (form.ShowDialog(parent) == DialogResult.Cancel)
            {
                return(false);
            }

            if (form.rdbNewFile.Checked)
            {
                return(form.NewFile());
            }
            if (form.rdbLocalFile.Checked)
            {
                return(form.LocalFile());
            }
            if (form.rdbUrl.Checked)
            {
                return(form.Url());
            }

            return(true);
        }
Esempio n. 2
0
 private void btnAddRuleDefinition_Click(object sender, EventArgs e)
 {
     if (BPAManagerAddCollectionDialog.Show(Analyzer, this))
     {
         ruleDefinitionsModel.DoStructureChanged();
     }
     Activate();
 }