Hi,
I have got class Car, and each class has list of extras (leather, abs, Folding mirrors etc...)
public Extra
{
public bool Paid {get;set;}
public string Name {get;set;}
public string Code {get;set;}
}
And now, better is:
class Car
{
public Extra Leather {get;set;}
public Extra FoldingMirrors {get;set;}
public Extra Abs {get;set;}
}
or better:
class Car
{
private List<Extra> _listOfExtras=new List<Extra>
public List<Extra> ListOfExtras
{
...
}
}
And the worst part:
My winforms application works offline and one per month is sending datas for me.
I must hold list Of available (foreach car user choose extras) extras in this application so better way I think is option one.
how hold this list of extras in my applications ? It connect with webservice only one time per month.