I should show this _customers to list box:
so I used:
but my list box doesnt show my data.
how can I convert _customer to string?
Code:
public Customer GetCustomer(int index)
{
return (Customer)_customers[index];
}
Code:
private void UpdateCustomerList()
{
lstCustomer.Items.Clear();
for (int index = 0; index <= (_customerMngr.count-1); index++)
lstCustomer.Items.Add(_customerMngr.GetCustomer(index).ToString());
}
how can I convert _customer to string?
Comment