示例#1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            FrmMemory f = new FrmMemory();

            f.Show();
            this.Hide();
            timer1.Stop();
        }
示例#2
0
        private void menuItem3_Click(object sender, EventArgs e)
        {
            DialogResult r;

            r = MessageBox.Show("Nếu trở về trang chủ bây giờ, bạn sẽ phải chơi lại từ đầu, bạn chắc chắn chứ?", "Xác nhận",
                                MessageBoxButtons.YesNo);
            if (r == DialogResult.Yes)
            {
                FrmMemory f = new FrmMemory();
                f.Show();
                this.Hide();
            }
        }
示例#3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     progressBar1.Minimum = 0;
     progressBar1.Maximum = 8800;
     progressBar1.Step    = 300;
     lblPhanTram.Text     = x.ToString();
     progressBar1.PerformStep();
     if (x == 100)
     {
         timer1.Stop();
         FrmMemory f = new FrmMemory();
         btnOk.Enabled   = true;
         btnOk.BackColor = Color.Red;
     }
     x = x + 3;
 }
示例#4
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     progressBar1.Minimum = 300;
     progressBar1.Maximum = 10000;
     progressBar1.Step    = 100;
     lblPhanTram.Text     = x.ToString();
     progressBar1.PerformStep();
     if (x == 101)
     {
         timer1.Stop();
         FrmMemory f = new FrmMemory();
         f.Show();
         this.Hide();
     }
     x = x + 1;
 }