Beispiel #1
0
 private void btnstatus_Click(object sender, EventArgs e)
 {
     P1.Hide(); P2.Hide(); P3.Hide(); P5.Hide();
     P4.Show(); P4.BringToFront();
     lbltab.Text             = "Status Page";
     btnConnecting.BackColor = Color.FromArgb(41, 39, 40);
     btnsetting.BackColor    = Color.FromArgb(41, 39, 40);
     btncontroller.BackColor = Color.FromArgb(41, 39, 40);
     btnstatus.BackColor     = Color.FromArgb(41, 39, 70);
     btnhome.BackColor       = Color.FromArgb(41, 39, 40);
 }
Beispiel #2
0
 private void btnHistory_Click(object sender, EventArgs e)
 {
     P1.Hide(); P2.Hide(); P3.Hide(); P4.Hide(); P5.Hide();
     P7.Show(); P7.BringToFront();
     lbltab.Text             = "Report Page";
     btnConnecting.BackColor = Color.FromArgb(41, 39, 40); btnConnecting.ForeColor = Color.DimGray;
     btnSetting.BackColor    = Color.FromArgb(41, 39, 40); btnSetting.ForeColor = Color.DimGray;
     btnController.BackColor = Color.FromArgb(41, 39, 40); btnController.ForeColor = Color.DimGray;
     btnStatus.BackColor     = Color.FromArgb(41, 39, 40); btnStatus.ForeColor = Color.DimGray;
     btnHome.BackColor       = Color.FromArgb(41, 39, 40); btnHome.ForeColor = Color.DimGray;
     btnHistory.BackColor    = Color.FromArgb(41, 39, 70); btnHistory.ForeColor = Color.Aquamarine;
 }
Beispiel #3
0
 private void btncontroller_Click(object sender, EventArgs e)
 {
     P1.Hide(); P2.Hide(); P5.Hide(); P4.Hide(); P7.Hide();
     P3.Show(); P3.BringToFront();
     lbltab.Text             = "Controller Page";
     btnConnecting.BackColor = Color.FromArgb(41, 39, 40); btnConnecting.ForeColor = Color.DimGray;
     btnsetting.BackColor    = Color.FromArgb(41, 39, 40); btnsetting.ForeColor = Color.DimGray;
     btncontroller.BackColor = Color.FromArgb(41, 39, 70); btncontroller.ForeColor = Color.Aquamarine;
     btnstatus.BackColor     = Color.FromArgb(41, 39, 40); btnstatus.ForeColor = Color.DimGray;
     btnhome.BackColor       = Color.FromArgb(41, 39, 40); btnhome.ForeColor = Color.DimGray;
     btnreport.BackColor     = Color.FromArgb(41, 39, 40); btnreport.ForeColor = Color.DimGray;
 }
Beispiel #4
0
 private void btnlogout_Click(object sender, EventArgs e)
 {
     P1.Hide(); P2.Hide(); P3.Hide(); P4.Hide(); P6.Hide();
     P5.Hide(); lbltab.Text = "Login Page";
     this.Close();
 }