Exemple #1
0
        /// <summary>
        /// 07.全自动制样机接口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmiOpenFrmAutoMaker_Click(object sender, EventArgs e)
        {
            TaskForm taskForm = new FrmAutoMaker();

            if (HaveOpened(taskForm, this))
            {
                taskForm.MdiParent = this;
                taskForm.Show();
            }
        }
Exemple #2
0
        /// <summary>
        /// 全自动制样机
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOpenAutoMaker_Click(object sender, EventArgs e)
        {
            string uniqueKey = FrmAutoMaker.UniqueKey;

            if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null)
            {
                FrmAutoMaker frm = new FrmAutoMaker();
                FrmMainFrame.superTabControlManager.CreateTab(frm.Text, uniqueKey, frm, true, true);
            }
            else
            {
                FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey);
            }
        }
Exemple #3
0
        /// <summary>
        /// 打开全自动制样机监控
        /// </summary>
        public void OpenAutoMaker()
        {
            this.Invoke((Action)(() =>
            {
                string uniqueKey = FrmAutoMaker.UniqueKey;

                if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null)
                {
                    FrmAutoMaker frmAutoMaker = new FrmAutoMaker();
                    FrmMainFrame.superTabControlManager.CreateTab(frmAutoMaker.Text, uniqueKey, frmAutoMaker, false);
                }
                else
                {
                    FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey);
                }
            }));
        }
Exemple #4
0
        //打开全自动制样机监控
        public void OpenAutoMaker(string par)
        {
            SetColoTable();

            this.btnOpenAutoMaker.ColorTable = eButtonColor.Blue;

            this.Invoke((Action)(() =>
            {
                string uniqueKey = FrmAutoMaker.UniqueKey;

                if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null)
                {
                    FrmAutoMaker item = new FrmAutoMaker();
                    FrmAutoMaker.Device = par;
                    FrmMainFrame.superTabControlManager.CreateTab(item.Text, uniqueKey, item, true);
                }
                else
                {
                    FrmAutoMaker.Device = par;
                    FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey);
                }
            }));
        }