private void button3_Click(object sender, EventArgs e) { Form ifrm = new Факультеты(); ifrm.Show(); this.Hide(); }
private void button2_Click(object sender, EventArgs e) { if (textBox3.Text == "") { label5.Text = "Введите Название!"; } else { DataRow row; row = this.maketDataSet2.Faculties.NewRow(); row["idEI"] = comboBox1.SelectedValue; row["NameFac"] = textBox3.Text; row["YearOfFoundation"] = textBox1.Text; row["LINK"] = textBox2.Text; this.maketDataSet2.Faculties.Rows.Add(row); this.facultiesTableAdapter1.Update(this.maketDataSet2.Faculties); Form ifrm = new Факультеты(); ifrm.Show(); this.Hide(); } }