private void button1_Click_1(object sender, EventArgs e) { if (txtSchoolCode.Text != "") { if (txtSchoolName.Text != "") { if (insertSchool()) { MessageBox.Show("School/College Successfully Inserted."); this.Close(); Main.schoolInfo schoolInfoObj = new schoolInfo(); schoolInfoObj.Show(); } else { MessageBox.Show("Problem is database. Contact to support team."); } } else { MessageBox.Show("Please fill school name."); } } else { MessageBox.Show("Please fill numeric 11 digit school code."); } }
private void button1_Click(object sender, EventArgs e) { if (schoolList.SelectedItem.ToString() == "Add New") { Main.AddSchool addSchoolObj = new AddSchool(); addSchoolObj.Show(); this.Close(); } else { conObj.setDatabase(schoolList.SelectedItem.ToString()); Main.schoolInfo schoolInfoObj = new schoolInfo(); this.Close(); schoolInfoObj.Show(); } }
private void button1_Click(object sender, EventArgs e) { Main.schoolInfo school = new schoolInfo(); school.Show(); }
private void DeleteStudent_Leave(object sender, EventArgs e) { Main.schoolInfo school = new schoolInfo(); school.Show(); }