Ejemplo n.º 1
0
        public void StopIdle()
        {
            try
            {
                lblGameName.Visible   = false;
                picApp.Image          = null;
                picApp.Visible        = false;
                lblCurrentStatus.Text = "Not in game";
                picIdleStatus.Image   = null;

                // Stop the card drop check timer
                tmrCardDropCheck.Enabled = false;

                // Hide the status bar
                ssFooter.Visible = false;

                // Resize the form
                var graphics = CreateGraphics();
                var scale    = graphics.DpiY * 1.9583;
                Height = Convert.ToInt32(scale);

                // Kill the idling process
                foreach (var badge in AllBadges.Where(b => b.InIdle))
                {
                    badge.StopIdle();
                }
            }
            catch (Exception ex)
            {
                Logger.Exception(ex, "frmMain -> StopIdle");
            }
        }
Ejemplo n.º 2
0
        public void StopIdle()
        {
            try
            {
                lblGameName.Visible    = false;
                picApp.Image           = null;
                picApp.Visible         = false;
                GamesState.Visible     = false;
                btnPause.Visible       = false;
                btnSkip.Visible        = false;
                lblCurrentStatus.Text  = localization.strings.not_ingame;
                lblHoursPlayed.Visible = false;
                picIdleStatus.Image    = null;

                // Hide the status bar
                ssFooter.Visible = false;

                // Resize the form
                var graphics = CreateGraphics();
                var scale    = graphics.DpiY * 1.9583;
                Height = Convert.ToInt32(scale);

                // Kill the idling process
                foreach (var badge in AllBadges.Where(b => b.InIdle))
                {
                    badge.StopIdle();
                }
            }
            catch (Exception ex)
            {
                Logger.Exception(ex, "frmMain -> StopIdle");
            }
        }
Ejemplo n.º 3
0
        public void StopIdle()
        {
            try
            {
                LblGameName.Visible    = false;
                PbxApp.Image           = null;
                PbxApp.Visible         = false;
                LvwGamesState.Visible  = false;
                BtnPause.Visible       = false;
                BtnSkip.Visible        = false;
                LblCurrentStatus.Text  = localization.strings.not_ingame;
                LblHoursPlayed.Visible = false;
                PbxIdleStatus.Image    = null;

                // Stop the card drop check timer
                TmrCardDropCheck.Enabled = false;

                // Stop the statistics timer
                TmrStatistics.Stop();
                TmrStatistics.Enabled = false;

                // Hide the status bar
                SstFooter.Visible = false;

                // Resize the form
                var graphics = CreateGraphics();
                var scale    = graphics.DpiY * 1.9583;
                Height = Convert.ToInt32(scale);

                // Kill the idling process
                foreach (var badge in AllBadges.Where(b => b.InIdle))
                {
                    badge.StopIdle();
                }
            }
            catch (Exception ex)
            {
                Logger.Exception(ex, "frmMain -> StopIdle");
            }
        }