Пример #1
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.WindowState   = FormWindowState.Maximized;
     child_DataManage.StartPosition = FormStartPosition.CenterParent;
     child_DataManage.Parent        = pnl_Center;
     child_DataManage.Show();
 }
Пример #2
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;
 }
Пример #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;
            }
            else if (child_JobWork != null)
            {
                child_JobWork.Close();
                child_JobWork.Dispose();
                child_JobWork = null;
            }

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

            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;
            lbl_Title.Text        = "데이터 조회";
            lbl_Title.Location    = new Point(this.Width - (lbl_Title.Size.Width + 28), lbl_Title.Location.Y);
        }