Exemple #1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            var dialog = new OptionSetSpecifierDialog(CallingControl, false);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                ChkListBoxOptionSets.Items.Add(dialog.AttributeSchemaName, false);
            }
        }
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            var dialog = new OptionSetSpecifierDialog(CallingControl, false);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                ChkListBoxOptionSets.Items.Add(dialog.AttributeSchemaName, false);
            }
        }
        protected virtual void OpenAddDialog()
        {
            var dialog = new OptionSetSpecifierDialog(CallingControl, true);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                var values = dialog.AttributeSchemaName.Split(new []{'.'}, StringSplitOptions.RemoveEmptyEntries);
                if(values.Length == 2)
                AddRow(values[0], values[1]);
            }
        }
Exemple #4
0
        protected virtual void OpenAddDialog()
        {
            var dialog = new OptionSetSpecifierDialog(CallingControl, true, "Specify Attribute");

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                var values = dialog.AttributeSchemaName.Split(new [] { '.' }, StringSplitOptions.RemoveEmptyEntries);
                if (values.Length == 2)
                {
                    AddRow(values[0], values[1]);
                }
            }
        }