private void ActionsOnCurrentLinkedListStep(LinkedListNode <CompleteStep <WizardBusinessObject> > step) { if (CurrentLinkedListStep != null) { CurrentLinkedListStep.Value.ViewModel.IsCurrentStep = false; } _stepManager.CurrentLinkedListStep = step; if (step != null) { step.Value.ViewModel.IsCurrentStep = true; step.Value.ViewModel.BeforeShow(); foreach (var group in StepGroups) { @group.IsCurrent = step.Value.GroupName == @group.DisplayName; } CurrentGroupIndex = (StepGroups.IndexOf(StepGroups.First(x => x.IsCurrent)) + 1) * 2 - 1; CurrentGroupSteps = Steps.Where(x => x.GroupName == step.Value.GroupName).ToList(); } CurrentIndex = (_stepManager.CurrentIndex * 2) - 1; //(progress bar must stop in a center ) }
public StepGroup GetNextStepGroup(int flowStepId) { StepGroup @group = StepGroups.FirstOrDefault(p => p.Steps.Any(q => q.FlowStepId == flowStepId)); if (@group != null) { var nextGroup = StepGroups.OrderBy(p => p.OrderId).FirstOrDefault(p => p.OrderId > @group.OrderId); if (nextGroup != null) { return(nextGroup); } } return(null); }
public bool DeepEquals(DestinyNodeStepDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && StepIndex == other.StepIndex && NodeStepHash == other.NodeStepHash && InteractionDescription == other.InteractionDescription && DamageType == other.DamageType && DamageTypeHash == other.DamageTypeHash && (ActivationRequirement is not null ? ActivationRequirement.DeepEquals(other.ActivationRequirement) : other.ActivationRequirement is null) && CanActivateNextStep == other.CanActivateNextStep && NextStepIndex == other.NextStepIndex && IsNextStepRandom == other.IsNextStepRandom && PerkHashes.DeepEqualsListNaive(other.PerkHashes) && StartProgressionBarAtProgress == other.StartProgressionBarAtProgress && StatHashes.DeepEqualsListNaive(other.StatHashes) && AffectsQuality == other.AffectsQuality && (StepGroups is not null ? StepGroups.DeepEquals(other.StepGroups) : other.StepGroups is null) && AffectsLevel == other.AffectsLevel && SocketReplacements.DeepEqualsList(other.SocketReplacements)); }
public bool DeepEquals(TalentGridNodeStep other) { return(other != null && DisplayProperties.DeepEquals(other.DisplayProperties) && StepIndex == other.StepIndex && NodeStepHash == other.NodeStepHash && InteractionDescription == other.InteractionDescription && DamageTypeEnumValue == other.DamageTypeEnumValue && DamageType.DeepEquals(other.DamageType) && ActivationRequirement.DeepEquals(other.ActivationRequirement) && CanActivateNextStep == other.CanActivateNextStep && NextStepIndex == other.NextStepIndex && IsNextStepRandom == other.IsNextStepRandom && Perks.DeepEqualsReadOnlyCollections(other.Perks) && StartProgressionBarAtProgress == other.StartProgressionBarAtProgress && Stats.DeepEqualsReadOnlyCollections(other.Stats) && AffectsQuality == other.AffectsQuality && StepGroups.DeepEquals(other.StepGroups) && AffectsLevel == other.AffectsLevel && SocketReplacements.DeepEqualsReadOnlyCollections(other.SocketReplacements) && TruePropertyIndex == other.TruePropertyIndex && TrueStepIndex == other.TrueStepIndex); }
public bool IsAllApproved() { return(StepGroups.All(@group => @group.StepStatus == StepStatus.Approved)); }
public bool Equals(DestinyNodeStepDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( StepIndex == input.StepIndex || (StepIndex.Equals(input.StepIndex)) ) && ( NodeStepHash == input.NodeStepHash || (NodeStepHash.Equals(input.NodeStepHash)) ) && ( InteractionDescription == input.InteractionDescription || (InteractionDescription != null && InteractionDescription.Equals(input.InteractionDescription)) ) && ( DamageType == input.DamageType || (DamageType != null && DamageType.Equals(input.DamageType)) ) && ( DamageTypeHash == input.DamageTypeHash || (DamageTypeHash.Equals(input.DamageTypeHash)) ) && ( ActivationRequirement == input.ActivationRequirement || (ActivationRequirement != null && ActivationRequirement.Equals(input.ActivationRequirement)) ) && ( CanActivateNextStep == input.CanActivateNextStep || (CanActivateNextStep != null && CanActivateNextStep.Equals(input.CanActivateNextStep)) ) && ( NextStepIndex == input.NextStepIndex || (NextStepIndex.Equals(input.NextStepIndex)) ) && ( IsNextStepRandom == input.IsNextStepRandom || (IsNextStepRandom != null && IsNextStepRandom.Equals(input.IsNextStepRandom)) ) && ( PerkHashes == input.PerkHashes || (PerkHashes != null && PerkHashes.SequenceEqual(input.PerkHashes)) ) && ( StartProgressionBarAtProgress == input.StartProgressionBarAtProgress || (StartProgressionBarAtProgress.Equals(input.StartProgressionBarAtProgress)) ) && ( StatHashes == input.StatHashes || (StatHashes != null && StatHashes.SequenceEqual(input.StatHashes)) ) && ( AffectsQuality == input.AffectsQuality || (AffectsQuality != null && AffectsQuality.Equals(input.AffectsQuality)) ) && ( StepGroups == input.StepGroups || (StepGroups != null && StepGroups.Equals(input.StepGroups)) ) && ( AffectsLevel == input.AffectsLevel || (AffectsLevel != null && AffectsLevel.Equals(input.AffectsLevel)) ) && ( SocketReplacements == input.SocketReplacements || (SocketReplacements != null && SocketReplacements.SequenceEqual(input.SocketReplacements)) )); }
public void Update(DestinyNodeStepDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (StepIndex != other.StepIndex) { StepIndex = other.StepIndex; OnPropertyChanged(nameof(StepIndex)); } if (NodeStepHash != other.NodeStepHash) { NodeStepHash = other.NodeStepHash; OnPropertyChanged(nameof(NodeStepHash)); } if (InteractionDescription != other.InteractionDescription) { InteractionDescription = other.InteractionDescription; OnPropertyChanged(nameof(InteractionDescription)); } if (DamageType != other.DamageType) { DamageType = other.DamageType; OnPropertyChanged(nameof(DamageType)); } if (DamageTypeHash != other.DamageTypeHash) { DamageTypeHash = other.DamageTypeHash; OnPropertyChanged(nameof(DamageTypeHash)); } if (!ActivationRequirement.DeepEquals(other.ActivationRequirement)) { ActivationRequirement.Update(other.ActivationRequirement); OnPropertyChanged(nameof(ActivationRequirement)); } if (CanActivateNextStep != other.CanActivateNextStep) { CanActivateNextStep = other.CanActivateNextStep; OnPropertyChanged(nameof(CanActivateNextStep)); } if (NextStepIndex != other.NextStepIndex) { NextStepIndex = other.NextStepIndex; OnPropertyChanged(nameof(NextStepIndex)); } if (IsNextStepRandom != other.IsNextStepRandom) { IsNextStepRandom = other.IsNextStepRandom; OnPropertyChanged(nameof(IsNextStepRandom)); } if (!PerkHashes.DeepEqualsListNaive(other.PerkHashes)) { PerkHashes = other.PerkHashes; OnPropertyChanged(nameof(PerkHashes)); } if (StartProgressionBarAtProgress != other.StartProgressionBarAtProgress) { StartProgressionBarAtProgress = other.StartProgressionBarAtProgress; OnPropertyChanged(nameof(StartProgressionBarAtProgress)); } if (!StatHashes.DeepEqualsListNaive(other.StatHashes)) { StatHashes = other.StatHashes; OnPropertyChanged(nameof(StatHashes)); } if (AffectsQuality != other.AffectsQuality) { AffectsQuality = other.AffectsQuality; OnPropertyChanged(nameof(AffectsQuality)); } if (!StepGroups.DeepEquals(other.StepGroups)) { StepGroups.Update(other.StepGroups); OnPropertyChanged(nameof(StepGroups)); } if (AffectsLevel != other.AffectsLevel) { AffectsLevel = other.AffectsLevel; OnPropertyChanged(nameof(AffectsLevel)); } if (!SocketReplacements.DeepEqualsList(other.SocketReplacements)) { SocketReplacements = other.SocketReplacements; OnPropertyChanged(nameof(SocketReplacements)); } }