/// <inheritdoc/> public bool InvokeEditor() { using (TotalEditorForm form = new TotalEditorForm(Report.Designer)) { form.Total = this; return(form.ShowDialog() == DialogResult.OK); } }
private void miNewTotal_Click(object sender, EventArgs e) { using (TotalEditorForm form = new TotalEditorForm(Designer)) { if (form.ShowDialog() == DialogResult.OK) { FReport.Dictionary.Totals.Add(form.Total); UpdateTree(); NavigateTo(Res.Get("Designer,ToolWindow,Dictionary,Totals") + "." + form.Total.Name); Change(); } } }