コード例 #1
0
        // 宏定义
        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;
            }
        }
コード例 #2
0
ファイル: EntityForm.cs プロジェクト: renyh1013/dp2
        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;
        }
コード例 #3
0
        // 宏定义
        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;
        }