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(); }
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; } 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.LightCyan; btn_DataManage.BackColor = Color.AliceBlue; child_Set = new frm_Set(); child_Set.TopLevel = false; child_Set.TopMost = true; child_Set.Parent = pnl_Center; child_Set.Show(); child_Set.Size = pnl_Center.Size; lbl_Title.Text = "환경설정"; lbl_Title.Location = new Point(this.Width - (lbl_Title.Size.Width + 28), lbl_Title.Location.Y); }