private void button3_Click(object sender, EventArgs e) { AdminPanel ap = new AdminPanel(); ap.Show(); this.Hide(); }
private void button3_Click(object sender, EventArgs e) { string plane = textBox1.Text; string city = textBox2.Text; string time = textBox3.Text; query = "insert into cityplane(Cities,Plane,Time) values('" + city + "','" + plane + "','" + time + "')"; con.setData(query); MessageBox.Show("Details Added Sucessfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); AdminPanel ap = new AdminPanel(); ap.Show(); this.Hide(); }
private void button5_Click(object sender, EventArgs e) { if (!authenticate()) { MessageBox.Show("Empty News is not valid for Post!", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } string news = richTextBox1.Text; query = "insert into news(News) values('" + news + "')"; con.setData(query); MessageBox.Show("News Added Sucessfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); AdminPanel ap = new AdminPanel(); ap.Show(); this.Hide(); }
private void button3_Click(object sender, EventArgs e) { if (!authenticatea()) { MessageBox.Show("Some Fields Are Empty! Must Fill All the Textbox.", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } else { if (textBox3.Text == "Admin" && textBox4.Text == "Admin09") { //MessageBox.Show("Admin Panel Login Sucessfull!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); AdminPanel ap = new AdminPanel(); ap.Show(); this.Hide(); } else { MessageBox.Show("Error! Email Or Password is wrong!", "Authentication Problem!", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } }