private void buttonAddPrimaryFilter_Click(object sender, EventArgs e) { FormFilter form = new FormFilter((ScriptObject)comboBoxPrimaryScriptObject.SelectedItem, _parent.Database.EnabledScriptObjects); // Offset new form form.StartPosition = FormStartPosition.Manual; form.Left = this.Left + 20; form.Top = this.Top + 20; if (form.ShowDialog(this) != DialogResult.OK) { return; } form.Filter.Parent.AddFilter(form.Filter); comboBoxPrimaryScriptObject_SelectedIndexChanged(null, null); comboBoxPrimaryFilter.SelectedItem = form.Filter; }
private void buttonAddPrimaryFilter_Click(object sender, EventArgs e) { FormFilter form = new FormFilter((ScriptObject)comboBoxPrimaryScriptObject.SelectedItem, _parent.Database.EnabledScriptObjects); // Offset new form form.StartPosition = FormStartPosition.Manual; form.Left = this.Left + 20; form.Top = this.Top + 20; if (form.ShowDialog(this) != DialogResult.OK) { return; } form.Filter.Parent.AddFilter(form.Filter); comboBoxPrimaryScriptObject_SelectedIndexChanged(null, null); comboBoxPrimaryFilter.SelectedItem = form.Filter; }