private void _forest_ForestGrowComplete(object sender, EventArgs e) { Progress = 100; IsBtnGenerateEnable = true; IsBtnResolveEnable = true; App.Current.Dispatcher.Invoke(() => { NameValueList.Clear(); }); IItemNumerical item = _forest.CreateItem(); var names = _forest.GetFeatureNames(); foreach (var name in names) { if (name == ResolutionFeatureName) { continue; } App.Current.Dispatcher.Invoke(() => { NameValueList.Add(new NameValue { Name = name, Value = 0 }); }); } }