示例#1
0
        public FmMOExcute()
        {
            InitializeComponent();

            this.Load += FmLoad;
            this.Text  = lbl_title.Text;

            if (FmMain.ActivePageDelegate(this.Name))
            {
                this.Close();
                return;
            }

            FmMOExcuteQ frm = new FmMOExcuteQ();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.equipmentId = frm.EQId;
                this.operationId = frm.OperationId;

                //赋值委托关闭标签
                CloseCtrlTab = this.CloseTab;

                FmMain.NewPageDelegate(this);
            }
            else
            {
                this.Close();
            }
        }
示例#2
0
        private void BtnChange_Click(object sender, EventArgs e)
        {
            FmMOExcuteQ frm = new FmMOExcuteQ();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.equipmentId = frm.EQId;
                this.operationId = frm.OperationId;

                this.FmLoad(null, null);
            }
        }