CTCOfficeGUI.MainScreen.OnViewSimulatorWindowClicked C# (CSharp) Method

OnViewSimulatorWindowClicked() private method

User selected the view simulator window menu item
private OnViewSimulatorWindowClicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void OnViewSimulatorWindowClicked(object sender, EventArgs e)
        {
            if (m_simulatorWindow == null || m_simulatorWindow.IsDisposed || m_simulatorWindow.Disposing)
            {
                m_simulatorWindow = new SimulatorWindow();
                m_simulatorWindow.SetSelectedTrackBlock(m_selectedTrackBlock);
            }

            m_simulatorWindow.WindowState = FormWindowState.Normal;
            m_simulatorWindow.Show();
        }