private void button2_Click(object sender, EventArgs e) { HireForm hire = new HireForm(); hire.MdiParent = this.ParentForm; hire.Show(); }
private void wypożyczenieToolStripMenuItem_Click(object sender, EventArgs e) { HireForm hire = new HireForm(); hire.MdiParent = this; hire.Show(); }
private void button3_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in this.dataGridView1.SelectedRows) { Hire hire = row.DataBoundItem as Hire; if (hire != null) { HireForm hireForm = new HireForm(hire); hireForm.MdiParent = this.ParentForm; hireForm.Show(); } } }