private void button1_Click(object sender, EventArgs e) { addadvics f = new addadvics(); this.Hide(); f.Show(); }
private void create_Click(object sender, EventArgs e) { addadvics a = new addadvics(); this.Hide(); a.Show(); }
private void updateadd_Click(object sender, EventArgs e) { if (dataGridadd.SelectedCells.Count != 0) { int rw = dataGridadd.SelectedCells[0].RowIndex; int id = (int)dataGridadd.Rows[rw].Cells["Id"].Value; addadvics se = new addadvics(id); this.Hide(); se.Show(); } }