private void dodajStrażakaToolStripMenuItem_Click(object sender, EventArgs e) { FiremanForm firemanForm = new FiremanForm(); firemanForm.MdiParent = this; firemanForm.Show(); }
private void toolStripButton1_Click(object sender, EventArgs e) { FiremanForm firemanForm = new FiremanForm(); firemanForm.MdiParent = this; firemanForm.Show(); }
private void buttonDodaj_Click(object sender, EventArgs e) { FiremanForm fireman = new FiremanForm(); fireman.MdiParent = this.ParentForm; fireman.Show(); }
private void buttonEdytuj_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in this.dataGridView1.SelectedRows) { Fireman fireman = row.DataBoundItem as Fireman; if (fireman != null) { FiremanForm firemanForm = new FiremanForm(fireman); firemanForm.MdiParent = this.ParentForm; firemanForm.Show(); } } }