public void SelectedNodeComponentChanged(object sender, System.Windows.RoutedPropertyChangedEventArgs <object> e) { selectedComponent = e.NewValue as Component; if (selectedComponent != null) { selectedNode = selectedComponent.GetNode(); } else { selectedNode = e.NewValue as Node; } }
public void SelectedNodeComponentChanged(object sender, System.Windows.RoutedPropertyChangedEventArgs<object> e) { selectedComponent = e.NewValue as Component; if(selectedComponent != null) { selectedNode = selectedComponent.GetNode(); } else { selectedNode = e.NewValue as Node; } }