public override bool Equals(object obj) { ReferenceStepPropertyInformation propertyInformation = obj as ReferenceStepPropertyInformation; if (propertyInformation != null) { return(this.referenceStep.Equals((object)propertyInformation.referenceStep)); } return(base.Equals(obj)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { ReferenceStepPropertyInformation propertyInformation = value as ReferenceStepPropertyInformation; if (propertyInformation != null) { value = (object)propertyInformation.Name; } return(value); }
public int CompareTo(object obj) { ReferenceStepPropertyInformation propertyInformation = obj as ReferenceStepPropertyInformation; if (propertyInformation == null) { return(0); } if (this.GroupBy != propertyInformation.GroupBy) { return(string.Compare(this.GroupBy, propertyInformation.GroupBy, StringComparison.CurrentCulture)); } return(string.Compare(this.referenceStep.Name, propertyInformation.referenceStep.Name, StringComparison.CurrentCulture)); }
public void Rebuild() { SceneNodeProperty sceneNodeProperty = this.editingProperty as SceneNodeProperty; BehaviorTargetedTriggerActionNode triggerActionNode = sceneNodeProperty != null ? sceneNodeProperty.SceneNodeObjectSet.RepresentativeSceneNode as BehaviorTargetedTriggerActionNode : (BehaviorTargetedTriggerActionNode)null; this.properties = triggerActionNode == null || triggerActionNode.TargetNode == null ? (IEnumerable <ReferenceStepPropertyInformation>)null : ReferenceStepPropertyInformation.GetPropertiesForType(triggerActionNode.TargetNode.TrueTargetTypeId); if (this.Rebuilt == null) { return; } this.Rebuilt((object)this, EventArgs.Empty); }