private void DobavKlass_Click(object sender, EventArgs e) { Klass p = new Klass(); NewKlassForma f = new NewKlassForma(p); f.ShowDialog(); Fill(); }
private void dataGridViewKlass_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { Klass p = (Klass)dataGridViewKlass.Rows[e.RowIndex].DataBoundItem; NewKlassForma f = new NewKlassForma(p); f.ShowDialog(); Fill(); }