public List<string> printStore() { List<string> s = new List<string>(); for (int i = 0; i < Locations.Count - 1; i++) { Location L = new Location(); L = (Location)Locations[i]; // s += L.toString() + '\t' + '\t'; s.Add(L.toString()); } return s; }
public Location LocationCreattor(String textline) { string[] a = textline.Split(','); Location L = new Location(double.Parse(a[1]), double.Parse(a[3]), a[2], a[4]); return L; }
public void addLocation(Location L) { Locations.Add(L); }