DoodleJump.GameMainWindow.LoseFormCalling C# (CSharp) Method

LoseFormCalling() private method

private LoseFormCalling ( ) : void
return void
        private void LoseFormCalling()
        {
            if ((_DoodlJumper.Lose == true) && (_lose < ApplicationSettings.LoseNumber))
            {
                DoodleJumper.Top += 1;
                if (DoodleJumper.Top < 0)
                    DoodleJumper.Visible = false;
                System.Threading.Thread.Sleep(ApplicationSettings.Sleep);
                _step = this.AutoScrollPosition.Y;
                this.AutoScrollPosition = new Point(this.AutoScrollPosition.X, (-1) * _step + ApplicationSettings.ScrollNumber);
                DoodleJumper.Refresh();
                _lose++;
                if (_lose == ApplicationSettings.LoseNumber)
                {

                    Lose loseform = new Lose(_score, _menu);
                    loseform.Show();
                    this.Close();
                }
            }
        }