コード例 #1
0
 //Perubahan warna pada info panel & label
 private void info_timer_Tick(object sender, EventArgs e)
 {
     if (this.info_panel.BackColor == Color.Red)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled        = false;
     }
     if (this.info_panel.BackColor == Color.Yellow)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled        = false;
         info_img.Image            = Properties.Resources.lockKey;
     }
     if (this.info_panel.BackColor == Color.DarkOrange)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled        = false;
     }
     if (this.info_panel.BackColor == Color.LimeGreen)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled        = false;
         this.Hide();
         FormUtama fUtama = new FormUtama();
         fUtama.passLevel = level_lbl.Text;
         fUtama.passUser  = user_lbl.Text;
         fUtama.Show();
     }
 }
コード例 #2
0
 //Perubahan warna pada info panel & label
 private void info_timer_Tick(object sender, EventArgs e)
 {
     if (this.info_panel.BackColor == Color.Red)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled = false;
     }
     if (this.info_panel.BackColor == Color.Yellow)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled = false;
         info_img.Image = Properties.Resources.lockKey;
     }
     if (this.info_panel.BackColor == Color.DarkOrange)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled = false;
     }
     if (this.info_panel.BackColor == Color.LimeGreen)
     {
         this.info_panel.BackColor = Color.MediumBlue;
         info_timer.Enabled = false;
         this.Hide();
         FormUtama fUtama = new FormUtama();
         fUtama.passLevel = level_lbl.Text;
         fUtama.passUser = user_lbl.Text;
         fUtama.Show();
     }
 }