Пример #1
0
 private void LoseForm_Load(object sender, EventArgs e)
 {
     panelMain.BackColor      = Color.FromArgb(12, 57, 115);
     panelMFill.BackColor     = Color.FromArgb(12, 57, 115);
     panelTitle.BackColor     = Color.FromArgb(31, 180, 231);
     panelTime.BackColor      = Color.FromArgb(26, 69, 106);
     labelWhatDifficulty.Text =
         difficulty == Difficulty.Difficult ? "困难" :
         difficulty == Difficulty.Medium ? "中等" :
         difficulty == Difficulty.Easy ? "简单" : "随机";
     labelWhatSwitchNumber.Text = switchNumber == SwitchNumber.One ? "翻一张" : "翻三张";
     labelTip1.Location         = SolitaireUtil.HorizontalCenter(labelTip1, panelTip);
     labelTip2.Location         = SolitaireUtil.HorizontalCenter(labelTip2, panelTip);
 }
Пример #2
0
 private void VictoryForm_Load(object sender, EventArgs e)
 {
     panelMain.BackColor      = Color.FromArgb(12, 57, 115);
     panelMFill.BackColor     = Color.FromArgb(12, 57, 115);
     panelTitle.BackColor     = Color.FromArgb(31, 180, 231);
     panelTime.BackColor      = Color.FromArgb(26, 69, 106);
     buttonNewGame.Location   = SolitaireUtil.HorizontalVerticalCenter(buttonNewGame, panelMainButtom);
     labelWhatDifficulty.Text =
         difficulty == Difficulty.Difficult ? "困难" :
         difficulty == Difficulty.Medium ? "中等" :
         difficulty == Difficulty.Easy ? "简单" : "随机";
     labelWhatTime.Text         = time;
     labelWhatSwitchNumber.Text = switchNumber == SwitchNumber.One ? "翻一张" : "翻三张";
 }
Пример #3
0
        private void FirstForm_Load(object sender, EventArgs e)
        {
            arrayPanelDifficulty = new Panel[4];
            arrayPictureBox      = new PictureBox[4];
            LoadControl2Array();

            switchNumber = SwitchNumber.One;
            difficulty   = Difficulty.Easy;

            panelMFill.BackColor       = Color.FromArgb(12, 57, 115);
            panelMain.BackColor        = Color.FromArgb(12, 57, 115);
            panelTitle.BackColor       = Color.FromArgb(31, 180, 231);
            panelSwitchOne.BackColor   = Color.FromArgb(31, 180, 231);
            panelSwitchThree.BackColor = Color.FromArgb(1, 21, 37);
            panelEasy.BackColor        = Color.FromArgb(31, 180, 231);
            panelMedium.BackColor      = Color.FromArgb(1, 21, 37);
            panelDifficult.BackColor   = Color.FromArgb(1, 21, 37);
            panelRandom.BackColor      = Color.FromArgb(1, 21, 37);
            buttonStartGame.Location   = SolitaireUtil.HorizontalVerticalCenter(buttonStartGame, panelMainButtom);
            labelChoose.Location       = SolitaireUtil.HorizontalVerticalCenter(labelChoose, panelLabelChoose);
        }