Пример #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_Set_Click(object sender, EventArgs e)
 {
     if (child_Monitor != null)
     {
         child_Monitor.Close();
         child_Monitor.Dispose();
         child_Monitor = null;
     }
     else if (child_DataManage != null)
     {
         child_DataManage.Close();
         child_DataManage.Dispose();
         child_DataManage = null;
     }
     else if (child_Set != null)
     {
         return;
     }
     child_Set               = new frm_Set();
     child_Set.TopLevel      = false;
     child_Set.TopMost       = true;
     child_Set.WindowState   = FormWindowState.Maximized;
     child_Set.StartPosition = FormStartPosition.CenterParent;
     child_Set.Parent        = pnl_Center;
     child_Set.Show();
 }
Пример #3
0
 private void btn_DataManage_Click(object sender, EventArgs e)
 {
     if (child_Monitor != null)
     {
         child_Monitor.Close();
         child_Monitor.Dispose();
         child_Monitor = null;
     }
     else if (child_DataManage != null)
     {
         return;
     }
     else if (child_Set != null)
     {
         child_Set.Close();
         child_Set.Dispose();
         child_Set = null;
     }
     child_DataManage          = new frm_DataManage();
     child_DataManage.TopLevel = false;
     child_DataManage.TopMost  = true;
     child_DataManage.Parent   = pnl_Center;
     child_DataManage.Show();
     child_DataManage.Size = pnl_Center.Size;
 }
Пример #4
0
        private void btn_JobOrder_Click(object sender, EventArgs e)
        {
            if (child_JobWork != null)
            {
                return;
            }
            else if (child_Monitor != null)
            {
                child_Monitor.Close();
                child_Monitor.Dispose();
                child_Monitor = null;
            }
            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;
            }

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

            child_JobWork          = new frm_JobOrder();
            child_JobWork.TopLevel = false;
            child_JobWork.TopMost  = true;
            child_JobWork.Parent   = pnl_Center;
            child_JobWork.Show();
            child_JobWork.Size = pnl_Center.Size;
            lbl_Title.Text     = "작업지시서";
            lbl_Title.Location = new Point(this.Width - (lbl_Title.Size.Width + 28), lbl_Title.Location.Y);
        }