private void mi_ViewRolling_Click(object sender, EventArgs e) { if (m_rolling == null) { m_rolling = new RollingTrace(); m_rolling.Location = m_rolling_location; m_rolling.FormClosed += RollingTrace_Closed; m_rolling.MdiParent = this; m_rolling.Show(); } else if (m_rolling.WindowState == FormWindowState.Minimized) { m_rolling.WindowState = FormWindowState.Normal; } }
void RollingTrace_Closed(object sender, FormClosedEventArgs e) { m_rolling_location = m_rolling.Location; m_rolling = null; }
private void mi_ViewRolling_Click(object sender, EventArgs e) { if (m_rolling == null) { m_rolling = new RollingTrace(); m_rolling.Location = m_rolling_location; m_rolling.FormClosed += RollingTrace_Closed; m_rolling.MdiParent = this; m_rolling.Show(); } else if (m_rolling.WindowState == FormWindowState.Minimized) m_rolling.WindowState = FormWindowState.Normal; }