public NewKabinetForma(Kabinet kabinet) { InitializeComponent(); KABINET = kabinet; Fill(); FillPredmet(); }
private void DobavKabinet_Click(object sender, EventArgs e) { Kabinet p = new Kabinet(); NewKabinetForma f = new NewKabinetForma(p); f.ShowDialog(); Fill(); }
private void dataGridViewKabinet_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { Kabinet p = (Kabinet)dataGridViewKabinet.Rows[e.RowIndex].DataBoundItem; NewKabinetForma f = new NewKabinetForma(p); f.ShowDialog(); Fill(); }