예제 #1
0
        public Flat CreateFlat()
        {
            var f = new Flat(this);

            Flats.Add(f);
            return(f);
        }
예제 #2
0
파일: Xml.cs 프로젝트: Wolfury/nebenkosten
		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();
		}
예제 #3
0
 public FlatAssignmentCollection(Project host, Flat flat)
 {
     this.flat = flat;
     project   = host;
 }
예제 #4
0
		public Flat CreateFlat() {
			var f = new Flat(this);
			Flats.Add(f);
			return f;
		}