public Flat CreateFlat() { var f = new Flat(this); Flats.Add(f); return(f); }
public static void Write(PropertyManager properties, string filepath, IdTable ids) { var f = new XmlWriter(filepath); f.Begin("Properties"); var list = new Olivia2.Model.Property[properties.Count]; lock ( properties ) properties.CopyTo(list, 0); foreach (var p in list) { f.Begin(p, ids); f.Begin("Flats"); var flatlist = new Flat[p.Flats.Count]; lock ( p.Flats ) p.Flats.CopyTo(flatlist, 0); foreach ( var flat in flatlist ) f.Write(flat, ids); f.End("Flats"); f.End(p); } f.End("Properties"); f.Close(); }
public FlatAssignmentCollection(Project host, Flat flat) { this.flat = flat; project = host; }
public Flat CreateFlat() { var f = new Flat(this); Flats.Add(f); return f; }