public ForestFillConverter(ForestConverter converter) { if (converter == null) throw new ArgumentNullException("converter"); this.converter = converter; }
public ForestFillConverter(ForestConverter converter) { if (converter == null) { throw new ArgumentNullException("converter"); } this.converter = converter; }
private void OnForestConverterChanged(ForestConverter forestConverter) { Dictionary<string, TreeSpeciesInfo> dict = forestConverter.Mappings; foreach (var item in dict) { var geometry = (Geometry) forestDisplayGenerator.Resources[item.Value.ViewID]; var crown = new Path { Width = 15, Height = 15, Data = geometry, Stretch = Stretch.Fill, Fill = (Brush) forestConverter.Convert(item.Key, typeof (Brush), null, null) }; //plotter.NewLegend.AddLegendItem(markerChart, new NewLegendItem {Description = item.Key, VisualContent = crown}); } }