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}); } }
public ForestService(MySQLContext mySQLContext) { _mySQLContext = mySQLContext; _converter = new ForestConverter(); }