private void OnMapButtonClicked(object sender, EventArgs e) { if (m_MapForm == null || m_MapForm.IsDisposed) { m_MapForm = new MapForm(m_RobotPath); } m_MapForm.Show(this); }