Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Кафедры departments = new Кафедры();

            departments.ShowDialog();
        }
Exemple #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (nameDepTextBox.Text == "")
     {
         label6.Text = "Введите Название!";
     }
     else
     {
         DataRow row;
         row = this.maketDataSet2.Departments.NewRow();
         row["idFaculties"] = comboBox1.SelectedValue;
         row["NameDep"] = nameDepTextBox.Text;
         row["YearOfFoundation"] = yearOfFoundationTextBox.Text;
         row["Number"] = numberTextBox.Text;
         this.maketDataSet2.Departments.Rows.Add(row);
         this.departmentsTableAdapter3.Update(this.maketDataSet2.Departments);
         Form ifrm = new Кафедры();
         ifrm.Show();
         this.Hide();
     }
 }
Exemple #3
0
 private void button3_Click(object sender, EventArgs e)
 {
     Кафедры ifrm = new Кафедры();
     ifrm.Show();
     this.Hide();
 }