示例#1
0
        private void HTP_Next(object sender, EventArgs e)
        {
            //เพิ่มรูปตรงตามเลขได้เลย
            HTPstate++;
            if (HTPstate >= 2)
            {
                BtnBack.Show();
            }
            switch (HTPstate)
            {
            case 2:
                this.BackgroundImage = Properties.Resources.Night_time;
                break;

            case 3:
                this.BackgroundImage = Properties.Resources.Day_time;
                break;

            case 4:
                this.BackgroundImage = Properties.Resources.Icon_alpha_werewolf;
                BtnNext.Hide();
                break;

            case 5:
                this.BackgroundImage = Properties.Resources.Day_time;
                break;

            case 6:
                this.BackgroundImage = Properties.Resources.Day_time;
                break;

            case 7:
                this.BackgroundImage = Properties.Resources.Day_time;
                break;

            case 8:
                this.BackgroundImage = Properties.Resources.Day_time;
                BtnNext.Hide();
                break;
            }
        }
示例#2
0
        private void HTP_Next(object sender, EventArgs e)
        {
            //เพิ่มรูปตรงตามเลขได้เลย
            HTPstate++;
            if (HTPstate >= 2)
            {
                BtnBack.Show();
            }
            switch (HTPstate)
            {
            case 2:
                this.BackgroundImage = Properties.Resources.HTP2;
                break;

            case 3:
                this.BackgroundImage = Properties.Resources.HTP3;
                break;

            case 4:
                this.BackgroundImage = Properties.Resources.HTP4;
                BtnNext.Hide();
                break;
            }
        }