Exemplo n.º 1
0
        public Flat CreateFlat()
        {
            var f = new Flat(this);

            Flats.Add(f);
            return(f);
        }
Exemplo n.º 2
0
		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();
		}
Exemplo n.º 3
0
 public FlatAssignmentCollection(Project host, Flat flat)
 {
     this.flat = flat;
     project   = host;
 }
Exemplo n.º 4
0
		public Flat CreateFlat() {
			var f = new Flat(this);
			Flats.Add(f);
			return f;
		}