public void PropagateCompInfoToItems(ParameterStructure.Component.Component _comp, CompCompareWindow _win) { if (_comp == null) { return; } foreach (object item in this.Items) { TreeViewItemCompResult tvi = this.ItemContainerGenerator.ContainerFromItem(item) as TreeViewItemCompResult; if (tvi != null) { tvi.OtherParentComp = _comp; tvi.ParentWindow = _win; tvi.User = this.User; } } }
private void eh_MouseEnter(object sender, MouseEventArgs e) { TreeViewItemForMapping tvi = sender as TreeViewItemForMapping; // header highlighting preparation if (tvi != null) { ParameterStructure.Parameter.Parameter p = tvi.Header as ParameterStructure.Parameter.Parameter; ParameterStructure.Component.Component c = tvi.Header as ParameterStructure.Component.Component; WebServiceConnections.TypeNode tn = tvi.Header as WebServiceConnections.TypeNode; if (p != null) { // TODO } else if (c != null) { // TODO } else if (tn != null) { // TODO } } }