Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 private void MnuGameResume_Click(object sender, EventArgs e)
 {
     BtnResume.PerformClick();
 }