示例#1
0
        private void tmShowItem_Tick(object sender, EventArgs e)
        {
            if (PTB1.Location.X + 185 < 445 && PTB2.Location.X > 585)
            {
                PTB1.Location = new Point(PTB1.Location.X + Temp, PTB1.Location.Y);
                PTB2.Location = new Point(PTB2.Location.X - Temp, PTB2.Location.Y);
            }
            else
            {
                ListPanel[Thu - 2].Location  = new Point(455, 115);
                ListPanel[Thu - 2].Enabled   = true;
                ListPanel[Thu - 2].BackColor = Color.Red;
                ListPanel[Thu - 2].Visible   = true;
                tmShowItem.Stop();

                if (Thu == 8)
                {
                    MSBox mgs = new MSBox("Điểm Danh thành công", "Chúc mừng bạn đã nhận được món quà", "Mở Quà", MSBox.MSBoxIcon.Like);
                    mgs.ShowOnScreen();
                    FrmChuNhat frmchunhat = new FrmChuNhat(ID, NAME);
                    this.Visible = false;
                    frmchunhat.ShowDialog();
                    this.Close();
                }

                MSBox mgb = new MSBox("Điểm Danh thành công", "Chúc bạn chơi vui vẻ! ^v^", "Xác Nhận", MSBox.MSBoxIcon.Infomation);
                mgb.ShowOnScreen();
                FrmMain frmMain = new FrmMain(NAME);
                this.Visible = false;
                frmMain.ShowDialog();
                this.Close();
            }
        }
示例#2
0
        public void LOAD()
        {
            PlayNhac();
            AddLable();
            this.Size            = new Size(400, 700);
            this.BackgroundImage = FrmChuNhat.LoadImage(Properties.Resources.StartGame, 400, 700);
            lblLoiChao.Visible   = true;
            lblLoiChao.Location  = new Point(124, 700);
            lblLoiChao.Size      = new Size(200, 45);

            PannelChe.Visible  = true;
            PannelChe.Location = new Point(0, 0);
            PannelChe.Size     = new Size(400, 690);

            Dem = 5;
            tmNhayChu.Start();
        }