private void BtnPause_Click(object sender, EventArgs e) { if (!IsSteamReady) { return; } // Stop the steam-idle process StopIdle(); // Indicate to the user that idling has been paused LblCurrentStatus.Text = localization.strings.idling_paused; // Set the correct button visibility BtnResume.Visible = true; BtnPause.Visible = false; MnuGamePause.Enabled = false; MnuGameResume.Enabled = true; // Focus the resume button BtnResume.Focus(); }
private void MnuGameResume_Click(object sender, EventArgs e) { BtnResume.PerformClick(); }