private void button14_Click(object sender, EventArgs e) { if (!allowed) { alert.Hide(); alert2.Hide(); Alert3.BringToFront(); Alert3.Show(); } else { alert.Hide(); alert2.Hide(); Alert3.Hide(); integrantesCustomControl11.BringToFront(); SidePanel.Hide(); } }
private void label9_MouseLeave(object sender, EventArgs e) { Karakan3(label9); SidePanel.Hide(); }
public void label4_MouseLeave(object sender, EventArgs e) { Karakan3(label4); SidePanel.Hide(); }
private void btnInfo_Click(object sender, EventArgs e) { SidePanel.Show(); SidePanel.Hide(); introductionFrame1.BringToFront(); }
public RealStand() { InitializeComponent(); SidePanel.Hide(); }
public Escritorio() { InitializeComponent(); SidePanel.Hide(); show_page_default(); }
private void button4_Click(object sender, EventArgs e) { if (textBox1.Text == "" && textBox2.Text == "" && comboBox1.Text == "") { MessageBox.Show("Please Fill all Data!"); } else if (comboBox1.Text == "Admin") { com.Open(); SqlCommand cmo = new SqlCommand("select * from Admin"); cmo.Connection = com; SqlDataReader rd = cmo.ExecuteReader(); while (rd.Read()) { if (rd[3].ToString() == textBox1.Text && rd[6].ToString() == textBox2.Text) { x = true; break; } } if (x == true) { SidePanel.Hide(); uc_Admin h = new uc_Admin(); addcontroltopanel(h); label4.Text = "Rule: Admin"; } com.Close(); } else if (comboBox1.Text == "Cooker") { com.Open(); SqlCommand cmo1 = new SqlCommand("select * from Cookers"); cmo1.Connection = com; SqlDataReader rd1 = cmo1.ExecuteReader(); while (rd1.Read()) { if (rd1[3].ToString() == textBox1.Text && rd1[8].ToString() == textBox2.Text) { z = true; break; } } if (z == true) { SidePanel.Hide(); uc_Cooker h = new uc_Cooker(); addcontroltopanel(h); label4.Text = "Rule: Cooker"; } com.Close(); } else if (comboBox1.Text == "Driver") { com.Open(); SqlCommand cmo2 = new SqlCommand("select * from Drivers"); cmo2.Connection = com; SqlDataReader rd2 = cmo2.ExecuteReader(); while (rd2.Read()) { if (rd2[2].ToString() == textBox1.Text && rd2[8].ToString() == textBox2.Text) { y = true; break; } } if (y == true) { SidePanel.Hide(); uc_driver h = new uc_driver(); addcontroltopanel(h); label4.Text = "Rule: Driver"; } com.Close(); } else if (comboBox1.Text == "Food Quality Checker") { com.Open(); SqlCommand cmo3 = new SqlCommand("select * from [Food quality checkers]"); cmo3.Connection = com; SqlDataReader rd3 = cmo3.ExecuteReader(); while (rd3.Read()) { if (rd3[1].ToString() == textBox1.Text && rd3[7].ToString() == textBox2.Text) { d = true; break; } } if (d == true) { SidePanel.Hide(); uc_FQC h = new uc_FQC(); addcontroltopanel(h); label4.Text = "Rule: Food Quality Checker"; } com.Close(); } else { MessageBox.Show("You entered Thing Incorrect!!"); } textBox1.Text = ""; textBox2.Text = ""; comboBox1.Text = ""; }