Esempio n. 1
0
        // 设置动作参数
        // return:
        //      false   放弃
        //      true    确认
        public bool SetChangeParameters()
        {
            ChangeBiblioActionDialog dlg = new ChangeBiblioActionDialog();

            MainForm.SetControlFont(dlg, this.Font, false);
            dlg.GetValueTable -= new GetValueTableEventHandler(dlg_GetValueTable);
            dlg.GetValueTable += new GetValueTableEventHandler(dlg_GetValueTable);
            // dlg.MainForm = Program.MainForm;

            Program.MainForm.AppInfo.LinkFormState(dlg, "ChangeBiblioActionDialog_state");
            dlg.ShowDialog(this);
            Program.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        // 设置动作参数
        // return:
        //      false   放弃
        //      true    确认
        public bool SetChangeParameters()
        {
            ChangeBiblioActionDialog dlg = new ChangeBiblioActionDialog();
            MainForm.SetControlFont(dlg, this.Font, false);
            dlg.GetValueTable -= new GetValueTableEventHandler(dlg_GetValueTable);
            dlg.GetValueTable += new GetValueTableEventHandler(dlg_GetValueTable);
            dlg.MainForm = this.MainForm;

            this.MainForm.AppInfo.LinkFormState(dlg, "ChangeBiblioActionDialog_state");
            dlg.ShowDialog(this);
            this.MainForm.AppInfo.UnlinkFormState(dlg);

            if (dlg.DialogResult == System.Windows.Forms.DialogResult.OK)
                return true;

            return false;
        }