// 宏定义 void menu_macroDef_Click(object sender, EventArgs e) { MacroTableDialog dlg = new MacroTableDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.XmlFileName = Path.Combine(this.MainForm.UserDir, this.DbType + "_macrotable.xml"); this.MainForm.AppInfo.LinkFormState(dlg, this.DbType + "_MacroTableDialog_state"); dlg.ShowDialog(this); this.MainForm.AppInfo.UnlinkFormState(dlg); if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel) { return; } }
private void MenuItem_marcEditor_editMacroTable_Click(object sender, EventArgs e) { MacroTableDialog dlg = new MacroTableDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.XmlFileName = Path.Combine(this.MainForm.DataDir, "marceditor_macrotable.xml"); this.MainForm.AppInfo.LinkFormState(dlg, "entityform_MacroTableDialog_state"); dlg.ShowDialog(this); this.MainForm.AppInfo.UnlinkFormState(dlg); if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel) return; }
// 宏定义 void menu_macroDef_Click(object sender, EventArgs e) { MacroTableDialog dlg = new MacroTableDialog(); MainForm.SetControlFont(dlg, this.Font, false); dlg.XmlFileName = Path.Combine(this.MainForm.UserDir, this.DbType + "_macrotable.xml"); this.MainForm.AppInfo.LinkFormState(dlg, this.DbType + "_MacroTableDialog_state"); dlg.ShowDialog(this); this.MainForm.AppInfo.UnlinkFormState(dlg); if (dlg.DialogResult == System.Windows.Forms.DialogResult.Cancel) return; }