private void changeDiler(int idDiler) { DilerList dilerList = DilerList.getInstance(); Diler diller = dilerList.getItem(idDiler); if (diller != null) { tbDealerContacts.Text = diller.Text; } }
private void _dgvDiller_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int idDiller; int.TryParse(_dgv.Rows[_dgv.SelectedCells[0].RowIndex].Cells[0].Value.ToString(), out idDiller); DilerList dillerList = DilerList.getInstance(); Diler diller = dillerList.getItem(idDiller); ShowAddEdit(diller); }
public formDillerList() { InitializeComponent(); dillerList = DilerList.getInstance(); }