private void dodajWyjazdToolStripMenuItem_Click(object sender, EventArgs e) { AccidentForm accidentForm = new AccidentForm(); accidentForm.MdiParent = this; accidentForm.Show(); }
private void toolStripButton3_Click(object sender, EventArgs e) { AccidentForm accidentForm = new AccidentForm(); accidentForm.MdiParent = this; accidentForm.Show(); }
private void buttonDodaj_Click(object sender, EventArgs e) { AccidentForm accidentForm = new AccidentForm(); accidentForm.MdiParent = this.ParentForm; accidentForm.Show(); }
private void buttonEdytuj_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in this.dataGridView1.SelectedRows) { Accident accident = row.DataBoundItem as Accident; if (accident != null) { AccidentForm accidentForm = new AccidentForm(accident); accidentForm.MdiParent = this.ParentForm; accidentForm.Show(); } } }