private void formatAllFigures_Click(object sender, RibbonControlEventArgs e) { DocControlLoadingForm form; using (form = new DocControlLoadingForm(FormatAllFigures, "Formatting all figures.")) { form.ShowDialog(); } }
/** ======================= Acronym Table Group ======================= **/ private void formatTable_Click(object sender, RibbonControlEventArgs e) { Tools.StartWait(); DocControlLoadingForm form; using (form = new DocControlLoadingForm(Tools.FormatTable, "Formatting table.")) { form.ShowDialog(); } Tools.EndWait(); }