private void button2_Click(object sender, EventArgs e) { EdycjaPojazdu ep = new EdycjaPojazdu(); if (ep.ShowDialog(this) == DialogResult.OK) { Laduj(); } }
private void button5_Click(object sender, EventArgs e) { EdycjaPojazdu ep = new EdycjaPojazdu(); if (ep.ShowDialog(this) == DialogResult.OK) { LadujPojazdy(); UstawPojazd(ep.p.Marka + " " + ep.p.Model + " " + ep.p.NrRej); } }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int id; if (int.TryParse(dataGridView1.Rows[e.RowIndex].Cells["Id"].Value.ToString(), out id)) { EdycjaPojazdu ep = new EdycjaPojazdu(id); if (ep.ShowDialog(this) == DialogResult.OK) { Laduj(); } } }