示例#1
0
        private void btn_Monitor_Click(object sender, EventArgs e)
        {
            /*if (Console.CapsLock)
             *  MessageBox.Show("CapsLock ON", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error);
             * else
             *  MessageBox.Show("CapsLock OFF");*/


            if (child_Monitor != null)
            {
                return;
            }
            else if (child_DataManage != null)
            {
                child_DataManage.Close();
                child_DataManage.Dispose();
                child_DataManage = null;
            }
            else if (child_Set != null)
            {
                child_Set.Close();
                child_Set.Dispose();
                child_Set = null;
            }


            child_Monitor               = new frm_Monitor();
            child_Monitor.TopLevel      = false;
            child_Monitor.TopMost       = true;
            child_Monitor.WindowState   = FormWindowState.Maximized;
            child_Monitor.StartPosition = FormStartPosition.CenterParent;
            child_Monitor.Parent        = pnl_Center;
            child_Monitor.Show();
            child_Monitor.Controls.Find("chart1", true);
        }
示例#2
0
        private void btn_Monitor_Click(object sender, EventArgs e)
        {
            if (child_Monitor != null)
            {
                return;
            }
            else if (child_DataManage != null)
            {
                child_DataManage.Close();
                child_DataManage.Dispose();
                child_DataManage = null;
            }
            else if (child_Set != null)
            {
                child_Set.Close();
                child_Set.Dispose();
                child_Set = null;
            }

            child_Monitor          = new frm_Monitor();
            child_Monitor.TopLevel = false;
            child_Monitor.TopMost  = true;
            child_Monitor.Parent   = pnl_Center;
            child_Monitor.Show();
            child_Monitor.Size = pnl_Center.Size;
        }
示例#3
0
        private void btn_Monitor_Click(object sender, EventArgs e)
        {
            if (child_Monitor != null)
            {
                return;
            }
            else if (child_DataManage != null)
            {
                child_DataManage.Close();
                child_DataManage.Dispose();
                child_DataManage = null;
            }
            else if (child_Set != null)
            {
                child_Set.Close();
                child_Set.Dispose();
                child_Set = null;
            }
            else if (child_JobWork != null)
            {
                child_JobWork.Close();
                child_JobWork.Dispose();
                child_JobWork = null;
            }

            btn_Monitor.BackColor    = Color.LightCyan;
            btn_JobOrder.BackColor   = Color.AliceBlue;
            btn_Set.BackColor        = Color.AliceBlue;
            btn_DataManage.BackColor = Color.AliceBlue;

            child_Monitor          = new frm_Monitor();
            child_Monitor.TopLevel = false;
            child_Monitor.TopMost  = true;
            child_Monitor.Parent   = pnl_Center;
            child_Monitor.Show();
            child_Monitor.Size = pnl_Center.Size;
            lbl_Title.Text     = "공정 모니터링";
            lbl_Title.Location = new Point(this.Width - (lbl_Title.Size.Width + 28), lbl_Title.Location.Y);
        }