private void pauseButton_Click(object sender, EventArgs e) { if (m_ControlMode == ControlMode.Macro) { m_MacroPlayer.Pause(); } else if (m_ControlMode == ControlMode.Script) { m_ScriptHost.Pause(); } }