private void editUserExpressionToolStripMenuItem_Click(object sender, EventArgs e) { using (var form = new EditUserExpressionForm()) { form.LoadUserConditions(queryBuilder1.QueryView); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); } }
private void editPredefinedConditionsToolStripMenuItem_Click(object sender, EventArgs e) { var activeWindow = ActiveMdiChild as ChildForm; if (activeWindow == null) { return; } using (var form = new EditUserExpressionForm()) { form.LoadUserConditions(activeWindow.QueryView); form.StartPosition = FormStartPosition.CenterParent; form.ShowDialog(this); } }