예제 #1
0
        public virtual MultiTrunkTree AddMultiTrunkTree()
        {
            var tree = MultiTrunkTree.Create(this);

            Trees.Add(tree);
            return(tree);
        }
예제 #2
0
파일: Trunk.cs 프로젝트: galehouse5/TreesDb
 public static Trunk Create(MultiTrunkTree mttm)
 {
     return(new Trunk()
     {
         Tree = mttm,
         Girth = Distance.Null(),
         GirthMeasurementHeight = Distance.Null(),
         Height = Distance.Null(),
         HeightMeasurements = HeightMeasurements.Null(),
         TrunkComments = string.Empty
     }.RecordCreation() as Trunk);
 }