public bool Equals(WorkspaceConfiguration other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } bool allProperiesEqual = Name == other.Name && GroupByAttributeName == other.GroupByAttributeName && HighlightPast == other.HighlightPast && AreTooltipsEnabled == other.AreTooltipsEnabled && IsDataRowEnabled == other.IsDataRowEnabled && IsPlotRowEnabled == other.IsPlotRowEnabled && ShowCountData == other.ShowCountData && ShowDurationData == other.ShowDurationData && RelativeDuration == other.RelativeDuration && PlotType == other.PlotType && PlotInterval == other.PlotInterval && RelativeStartTime == other.RelativeStartTime && ShowCurrentTime == other.ShowCurrentTime && ShowHorizontalGridLines == other.ShowHorizontalGridLines && ShowVerticalGridLines == other.ShowVerticalGridLines && UseRelativeTime == other.UseRelativeTime && OperationColorAttribute == other.OperationColorAttribute; if (!allProperiesEqual) { return(false); } if ((this.SelectedAttributes == null) && (other.SelectedAttributes == null)) { return(true); } if ((this.SelectedAttributes == null) || (other.SelectedAttributes == null)) { return(false); } if (this.SelectedAttributes.Count != other.SelectedAttributes.Count) { return(false); } return(this.SelectedAttributes.Count == 0 || SelectedAttributes.Any(s => other.SelectedAttributes.Contains(s))); }
public void RemoveAttribute(string text) { SelectedAttributes.Remove(text); SetPropertyChanged(nameof(CanContinue)); }
public void RemoveAttribute(string text) { SelectedAttributes.Remove(text); }
public void AddAttribute(string text) { SelectedAttributes.Add(text); }
public bool IsBaseCombination() { return(SelectedAttributes.All(x => x.SelectedOption.Equals(AttributeOption.AnyValue))); }