public LayerSettings(LayerSettings layerSettings) { IsChecked = layerSettings.IsChecked; PointSymbolType = layerSettings.PointSymbolType; LineOrSymbolDbColor = layerSettings.LineOrSymbolDbColor; AreaDbColor = layerSettings.AreaDbColor; LineOrSymbolSize = layerSettings.LineOrSymbolSize; }
void Copy(AnalysisPoint analysisPoint) { Geo = new Geo(analysisPoint.Geo); LayerSettings = new LayerSettings(analysisPoint.LayerSettings); }
void Copy(Platform platform) { Description = platform.Description; Launches = platform.Launches; Tows = platform.Tows; RepeatCount = platform.RepeatCount; PlatformName = platform.PlatformName; PlatformType = platform.PlatformType; TrackType = (TrackType)platform.TrackType; Geo = new Geo(platform.Geo); IsRandom = platform.IsRandom; Depth = platform.Depth; Course = platform.Course; Speed = platform.Speed; LayerSettings = new LayerSettings(platform.LayerSettings); if (platform.Sources != null) foreach (var newsource in platform.Sources.Select(source => new Source(source))) Sources.Add(newsource); if (platform.ShipTrack != null) ShipTrack = new ShipTrack(this, platform.ShipTrack); }