예제 #1
0
 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.");
     }
 }
예제 #2
0
파일: start.cs 프로젝트: Ramkendre/Mycity
 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();
     }
 }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     Main.schoolInfo school = new schoolInfo();
     school.Show();
 }
예제 #4
0
 private void DeleteStudent_Leave(object sender, EventArgs e)
 {
     Main.schoolInfo school = new schoolInfo();
     school.Show();
 }