Example #1
0
        private void Lose(object state)
        {
            timer.Change(-1, -1);
            Action <string> actionDelegate = (x) => { Start.Text = "重新开始"; Start.Enabled = true; };

            Start.Invoke(actionDelegate, state);
            actionDelegate = (x) => { CountDown.Visible = false; };
            CountDown.Invoke(actionDelegate, state);
            actionDelegate = (x) => { Tip.Enabled = false; };
            Tip.Invoke(actionDelegate, state);
            actionDelegate = (x) => { MessUp.Enabled = false; };
            MessUp.Invoke(actionDelegate, state);
            actionDelegate = (x) => { GameBox.Visible = false; };
            GameBox.Invoke(actionDelegate, state);
            MessageBox.Show("挑战失败", "", MessageBoxButtons.OKCancel);
        }