private void materialFlatButton1_Click(object sender, EventArgs e) { if (InformationBox.Show("Do You Really Want To Logout?", "Comida Administrator", InformationBoxButtons.YesNo, InformationBoxIcon.Question).ToString() == "No") { ActiveControl = textBox1; textBox1.Focus(); } else { var firstpage = new Firstpage(); firstpage.Show(); Hide(); } }
private void materialFlatButton1_Click(object sender, EventArgs e) { if (comboBox1.Text == "") { InformationBox.Show("Please Select Cafeteria Name", "Project Administrator", InformationBoxButtons.OK, InformationBoxIcon.Information); } else { CafeteriaInfo.CafId = materialLabel2.Text.Trim(); CafeteriaInfo.Cafname = comboBox1.Text; var login = new Firstpage(); login.Show(); Hide(); } }