private void dodajPojazdToolStripMenuItem_Click(object sender, EventArgs e) { VehicleFrom vehicleFrom = new VehicleFrom(); vehicleFrom.MdiParent = this; vehicleFrom.Show(); }
private void toolStripButton2_Click(object sender, EventArgs e) { VehicleFrom vehicleFrom = new VehicleFrom(); vehicleFrom.MdiParent = this; vehicleFrom.Show(); }
private void buttonDodaj_Click(object sender, EventArgs e) { VehicleFrom vehicleFrom = new VehicleFrom(); vehicleFrom.MdiParent = this.ParentForm; vehicleFrom.Show(); }
private void buttonEdytuj_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in this.dataGridView1.SelectedRows) { Vehicle vehicle = row.DataBoundItem as Vehicle; if (vehicle != null) { VehicleFrom vehicleFrom = new VehicleFrom(vehicle); vehicleFrom.MdiParent = this.ParentForm; vehicleFrom.Show(); } } }