hey guys im tring to list whats in my collection base but no output..
by the way is there a way to load info from TXT file in collectionBase?
by the way this is just a project
i have :
class ATM
public void AddClient(string ClientID, string Full, string Type, double Solde, double Nip)
{
double Cash = Convert.ToDouble(Solde);
double NipA = Convert.ToDouble(Nip);
Client myClient = new Client(ClientID, Full, Type, Cash, NipA);
client.Add(myClient);
}
public string ListClient()
{
string resultC = "";
for (int i = 0; i < client.Count; i++)
{
resultC += client[i].ToString();
}
return resultC;
}
and on my form:
richTextBox1.Clear();
richTextBox1.AppendText(ATM.ListClient());
add client:
double Nip = Convert.ToDouble(textBox3Nip.Text);
double Cash = Convert.ToDouble(textBox5Solde.Text);
ATM.AddClient(textBox4IDcompte.Text, textBox1Full.Text, listBox1.Text, Cash, Nip);
it doesnt seem to save or it saves but can't list