private void btnAddRepair_Click(object sender, EventArgs e) { Repair repair = _car.createRepair(); Repair_AddEdit repairAE = new Repair_AddEdit(repair); if (repairAE.ShowDialog() == System.Windows.Forms.DialogResult.OK) { repairList.Add(repair); loadRepair(); } }
private void _dgvRepair_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int idRepair = Convert.ToInt32(dgvRepair.Rows[dgvRepair.SelectedCells[0].RowIndex].Cells[0].Value); Repair repair = repairList.getItem(idRepair); Repair_AddEdit repairAE = new Repair_AddEdit(repair); if (repairAE.ShowDialog() == System.Windows.Forms.DialogResult.OK) { loadRepair(); } }
private void btnAddRepair_Click(object sender, EventArgs e) { Repair repair = _car.createRepair(); Repair_AddEdit repairAE = new Repair_AddEdit(repair); if (repairAE.ShowDialog() == System.Windows.Forms.DialogResult.OK) { repairList.Add(repair); loadRepair(); } }
private void _dgvRepair_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int idRepair = Convert.ToInt32(dgvRepair.Rows[dgvRepair.SelectedCells[0].RowIndex].Cells[0].Value); Repair repair = repairList.getItem(idRepair); Repair_AddEdit repairAE = new Repair_AddEdit(repair); if (repairAE.ShowDialog() == System.Windows.Forms.DialogResult.OK) loadRepair(); }