public ImportedTreeStub(TMD.Model.Imports.Site site) { this.Site = site; Height = Distance.Null(); Girth = Distance.Null(); CrownSpread = Distance.Null(); Elevation = Elevation.Null(); Photos = new List <IPhoto>(); }
internal static MultiTrunkTree Create(Site site) => new MultiTrunkTree { TreeName = string.Empty, TreeNumber = null, CommonName = string.Empty, ScientificName = string.Empty, Status = TreeStatus.NotSpecified, HealthStatus = string.Empty, AgeClass = TreeAgeClass.NotSpecified, AgeType = TreeAgeType.NotSpecified, Age = null, GeneralComments = string.Empty, Coordinates = Coordinates.Null(), Elevation = Elevation.Null(), Height = Distance.Null(), HeightMeasurements = HeightMeasurements.Null(), HeightMeasurementMethod = site.Trip.DefaultHeightMeasurementMethod, HeightMeasurementType = string.Empty, LaserBrand = site.Trip.DefaultLaserBrand, ClinometerBrand = site.Trip.DefaultClinometerBrand, HeightComments = string.Empty, Girth = Distance.Null(), GirthMeasurementHeight = Distance.Null(), GirthRootCollarHeight = Distance.Null(), GirthComments = string.Empty, CrownSpread = Distance.Null(), MaximumLimbLength = Distance.Null(), CrownSpreadMeasurementMethod = string.Empty, BaseCrownHeight = Distance.Null(), CrownVolume = Volume.Null(), CrownVolumeCalculationMethod = string.Empty, CrownComments = string.Empty, TrunkVolume = Volume.Null(), TrunkVolumeCalculationMethod = string.Empty, TrunkComments = string.Empty, FormType = TreeFormType.Multi, NumberOfTrunks = null, TreeFormComments = string.Empty, TerrainType = TreeTerrainType.NotSpecified, TerrainShapeIndex = null, LandformIndex = null, TerrainComments = string.Empty, Site = site, MakeCoordinatesPublic = true, CombinedGirthNumberOfTrunks = null, Trunks = new List <Trunk>(), Photos = new List <IPhoto>() } .RecordCreation() as MultiTrunkTree;