private void IntuitExportClickHandler(object sender, EventArgs e) { try { ExportEngine engine = new ExportEngine(HostUI); using (ExportForm frm = new ExportForm()) { if (frm.ShowDialog(engine, HostUI) != System.Windows.Forms.DialogResult.OK) { HostUI.InfoMessageBox("Export canceled."); return; } } if (engine.Run()) { HostUI.InfoMessageBox("Exported to " + engine.OutputPath); } else { HostUI.ErrorMessageBox("Export canceled."); } } catch (Exception ex) { ErrorHandling.TopException(ex); } }
private void RenumberChecksClickHandler(object sender, RegisterEventArgs e) { try { using (RenumberChecksForm frm = new RenumberChecksForm()) { if (frm.ShowDialog(HostUI) != System.Windows.Forms.DialogResult.OK) { HostUI.InfoMessageBox("Renumber checks canceled."); return; } } } catch (Exception ex) { ErrorHandling.TopException(ex); } }