public void Update(DestinyLoreDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (Subtitle != other.Subtitle) { Subtitle = other.Subtitle; OnPropertyChanged(nameof(Subtitle)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public void Update(DestinyBreakerTypeDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (EnumValue != other.EnumValue) { EnumValue = other.EnumValue; OnPropertyChanged(nameof(EnumValue)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
private void ListDisplayProperties(DisplayProperties dp) { Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("List Display Properties: \nName:" + dp.Name + "\n"); System.Collections.Specialized.StringCollection sc = new System.Collections.Specialized.StringCollection(); DisplayComponent[] components = dp.GetDisplayComponents(out sc); if (components == null || components.Length == 0) { return; } //foreach (DisplayComponent obj in components) for (int i = 0; i < components.Length; i++) { DisplayComponent obj = components[i]; string name = sc[i]; DisplayComponent dc = (DisplayComponent)obj; Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("List Display Components: " + name + "\n"); Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("Is Applicable? : " + dc.IsApplicable.ToString() + "\n"); Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("Is Inherited?: " + dc.IsInherited.ToString() + "\n"); if (dc is DisplayComponentEntity) { Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("It is a Display Component Entity. \n"); } if (dc is DisplayComponentHatch) { Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage("It is a Display Component Hatch. \n"); } } }
public bool Equals(DestinyEntitySearchResultItem input) { if (input == null) { return(false); } return (( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( EntityType == input.EntityType || (EntityType != null && EntityType.Equals(input.EntityType)) ) && ( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( Weight == input.Weight || (Weight.Equals(input.Weight)) )); }
public bool Equals(DestinySeasonPassDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( RewardProgressionHash == input.RewardProgressionHash || (RewardProgressionHash.Equals(input.RewardProgressionHash)) ) && ( PrestigeProgressionHash == input.PrestigeProgressionHash || (PrestigeProgressionHash.Equals(input.PrestigeProgressionHash)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public void Update(DestinyTalentNodeCategory?other) { if (other is null) { return; } if (Identifier != other.Identifier) { Identifier = other.Identifier; OnPropertyChanged(nameof(Identifier)); } if (IsLoreDriven != other.IsLoreDriven) { IsLoreDriven = other.IsLoreDriven; OnPropertyChanged(nameof(IsLoreDriven)); } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (!NodeHashes.DeepEqualsListNaive(other.NodeHashes)) { NodeHashes = other.NodeHashes; OnPropertyChanged(nameof(NodeHashes)); } }
public void Update(DestinyMilestoneRewardCategoryDefinition?other) { if (other is null) { return; } if (CategoryHash != other.CategoryHash) { CategoryHash = other.CategoryHash; OnPropertyChanged(nameof(CategoryHash)); } if (CategoryIdentifier != other.CategoryIdentifier) { CategoryIdentifier = other.CategoryIdentifier; OnPropertyChanged(nameof(CategoryIdentifier)); } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (!RewardEntries.DeepEqualsDictionary(other.RewardEntries)) { RewardEntries = other.RewardEntries; OnPropertyChanged(nameof(RewardEntries)); } if (Order != other.Order) { Order = other.Order; OnPropertyChanged(nameof(Order)); } }
public bool DeepEquals(DestinyActivityDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && (OriginalDisplayProperties is not null ? OriginalDisplayProperties.DeepEquals(other.OriginalDisplayProperties) : other.OriginalDisplayProperties is null) && (SelectionScreenDisplayProperties is not null ? SelectionScreenDisplayProperties.DeepEquals(other.SelectionScreenDisplayProperties) : other.SelectionScreenDisplayProperties is null) && ReleaseIcon == other.ReleaseIcon && ReleaseTime == other.ReleaseTime && ActivityLightLevel == other.ActivityLightLevel && DestinationHash == other.DestinationHash && PlaceHash == other.PlaceHash && ActivityTypeHash == other.ActivityTypeHash && Tier == other.Tier && PgcrImage == other.PgcrImage && Rewards.DeepEqualsList(other.Rewards) && Modifiers.DeepEqualsList(other.Modifiers) && IsPlaylist == other.IsPlaylist && Challenges.DeepEqualsList(other.Challenges) && OptionalUnlockStrings.DeepEqualsList(other.OptionalUnlockStrings) && PlaylistItems.DeepEqualsList(other.PlaylistItems) && ActivityGraphList.DeepEqualsList(other.ActivityGraphList) && (Matchmaking is not null ? Matchmaking.DeepEquals(other.Matchmaking) : other.Matchmaking is null) && (GuidedGame is not null ? GuidedGame.DeepEquals(other.GuidedGame) : other.GuidedGame is null) && DirectActivityModeHash == other.DirectActivityModeHash && DirectActivityModeType == other.DirectActivityModeType && Loadouts.DeepEqualsList(other.Loadouts) && ActivityModeHashes.DeepEqualsListNaive(other.ActivityModeHashes) && ActivityModeTypes.DeepEqualsListNaive(other.ActivityModeTypes) && IsPvP == other.IsPvP && InsertionPoints.DeepEqualsList(other.InsertionPoints) && ActivityLocationMappings.DeepEqualsList(other.ActivityLocationMappings) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool DeepEquals(DestinyRecordDefinition other) { return(other != null && DisplayProperties.DeepEquals(other.DisplayProperties) && CompletionInfo.DeepEquals(other.CompletionInfo) && ExpirationInfo.DeepEquals(other.ExpirationInfo) && IntervalInfo.DeepEquals(other.IntervalInfo) && StateInfo.DeepEquals(other.StateInfo) && TitleInfo.DeepEquals(other.TitleInfo) && Objectives.DeepEqualsReadOnlyCollections(other.Objectives) && ParentNodes.DeepEqualsReadOnlyCollections(other.ParentNodes) && PresentationNodeType == other.PresentationNodeType && RecordValueStyle == other.RecordValueStyle && Requirements.DeepEquals(other.Requirements) && RewardItems.DeepEqualsReadOnlyCollections(other.RewardItems) && Scope == other.Scope && Traits.DeepEqualsReadOnlyCollections(other.Traits) && TraitIds.DeepEqualsReadOnlySimpleCollection(other.TraitIds) && Lore.DeepEquals(other.Lore) && PresentationInfo.DeepEquals(other.PresentationInfo) && ForTitleGilding == other.ForTitleGilding && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool Equals(DestinyTalentNodeCategory input) { if (input == null) { return(false); } return (( Identifier == input.Identifier || (Identifier != null && Identifier.Equals(input.Identifier)) ) && ( IsLoreDriven == input.IsLoreDriven || (IsLoreDriven != null && IsLoreDriven.Equals(input.IsLoreDriven)) ) && ( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( NodeHashes == input.NodeHashes || (NodeHashes != null && NodeHashes.SequenceEqual(input.NodeHashes)) )); }
public bool DeepEquals(DestinyRecordDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && Scope == other.Scope && (PresentationInfo is not null ? PresentationInfo.DeepEquals(other.PresentationInfo) : other.PresentationInfo is null) && LoreHash == other.LoreHash && ObjectiveHashes.DeepEqualsListNaive(other.ObjectiveHashes) && RecordValueStyle == other.RecordValueStyle && ForTitleGilding == other.ForTitleGilding && (TitleInfo is not null ? TitleInfo.DeepEquals(other.TitleInfo) : other.TitleInfo is null) && (CompletionInfo is not null ? CompletionInfo.DeepEquals(other.CompletionInfo) : other.CompletionInfo is null) && (StateInfo is not null ? StateInfo.DeepEquals(other.StateInfo) : other.StateInfo is null) && (Requirements is not null ? Requirements.DeepEquals(other.Requirements) : other.Requirements is null) && (ExpirationInfo is not null ? ExpirationInfo.DeepEquals(other.ExpirationInfo) : other.ExpirationInfo is null) && (IntervalInfo is not null ? IntervalInfo.DeepEquals(other.IntervalInfo) : other.IntervalInfo is null) && RewardItems.DeepEqualsList(other.RewardItems) && PresentationNodeType == other.PresentationNodeType && TraitIds.DeepEqualsListNaive(other.TraitIds) && TraitHashes.DeepEqualsListNaive(other.TraitHashes) && ParentNodeHashes.DeepEqualsListNaive(other.ParentNodeHashes) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool DeepEquals(DestinyObjectiveDefinition other) { return(other != null && AllowNegativeValue == other.AllowNegativeValue && AllowOvercompletion == other.AllowOvercompletion && AllowValueChangeWhenCompleted == other.AllowValueChangeWhenCompleted && CompletionValue == other.CompletionValue && IsCountingDownward == other.IsCountingDownward && IsDisplayOnlyObjective == other.IsDisplayOnlyObjective && Location.DeepEquals(other.Location) && MinimumVisibilityThreshold == other.MinimumVisibilityThreshold && ProgressDescription == other.ProgressDescription && Scope == other.Scope && ShowValueOnComplete == other.ShowValueOnComplete && (Perks != null ? Perks.DeepEquals(other.Perks) : other == null) && (Stats != null ? Stats.DeepEquals(other.Stats) : other == null) && ValueStyle == other.ValueStyle && CompletedValueStyle == other.CompletedValueStyle && InProgressValueStyle == other.InProgressValueStyle && DisplayProperties.DeepEquals(other.DisplayProperties) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public void Update(DestinyItemTierTypeDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (!InfusionProcess.DeepEquals(other.InfusionProcess)) { InfusionProcess.Update(other.InfusionProcess); OnPropertyChanged(nameof(InfusionProcess)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public void Update(DestinyReportReasonCategoryDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (!Reasons.DeepEqualsDictionary(other.Reasons)) { Reasons = other.Reasons; OnPropertyChanged(nameof(Reasons)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public void Update(DestinyRewardSourceDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (Category != other.Category) { Category = other.Category; OnPropertyChanged(nameof(Category)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public bool Equals(DestinyArtifactDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( TranslationBlock == input.TranslationBlock || (TranslationBlock != null && TranslationBlock.Equals(input.TranslationBlock)) ) && ( Tiers == input.Tiers || (Tiers != null && Tiers.SequenceEqual(input.Tiers)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public void Update(DestinyProgressionMappingDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (DisplayUnits != other.DisplayUnits) { DisplayUnits = other.DisplayUnits; OnPropertyChanged(nameof(DisplayUnits)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
/// <summary> /// Builds an array of persons to be placed in the ancestry tree. /// </summary> /// <param name="gx">The input model for which the array of persons will be parsed and analyzed.</param> /// <returns>An array of persons to be placed in the ancestry tree.</returns> protected List <Person> BuildArray(Gedcomx gx) { List <Person> ancestry = new List <Person>(); if (gx.Persons != null) { foreach (Person person in gx.Persons) { DisplayProperties display = person.DisplayExtension; if (display != null && display.AscendancyNumber != null) { try { int number = int.Parse(display.AscendancyNumber); while (ancestry.Count < number) { ancestry.Add(null); } ancestry[number - 1] = person; } catch (FormatException) { //fall through... } } } } return(ancestry); }
public List <DisplayProperties> GetAllInputPropertiesFromType(Type type, Company comp) { List <DisplayProperties> names = new List <DisplayProperties>(); var propertyNames = (from p in type.GetProperties() where p.GetCustomAttributes(typeof(InputFieldDataAttribute), true).Length > 0 select p).ToList(); if (propertyNames == null) { return(names); } names.Capacity = propertyNames.Count; foreach (var p in propertyNames) { var prop = new DisplayProperties() { PropertyName = p.Name, DisplayName = p.Name, PropertyType = p.PropertyType }; names.Add(prop); var ForeignKeys = p.GetCustomAttributes(typeof(ForeignKeyAttribute), true); if (ForeignKeys.Length > 0) { prop.ForeignKey = ((ForeignKeyAttribute)ForeignKeys[0]).ForeignKeyTable; } var AppEnumNames = p.GetCustomAttributes(typeof(AppEnumAttribute), true); if (AppEnumNames.Length > 0) { prop.EnumName = ((AppEnumAttribute)AppEnumNames[0]).EnumName; } } return(names); }
public bool Equals(DestinyMilestoneQuestDefinition input) { if (input == null) { return(false); } return (( QuestItemHash == input.QuestItemHash || (QuestItemHash.Equals(input.QuestItemHash)) ) && ( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( OverrideImage == input.OverrideImage || (OverrideImage != null && OverrideImage.Equals(input.OverrideImage)) ) && ( QuestRewards == input.QuestRewards || (QuestRewards != null && QuestRewards.Equals(input.QuestRewards)) ) && ( Activities == input.Activities || (Activities != null && Activities.SequenceEqual(input.Activities)) ) && ( DestinationHash == input.DestinationHash || (DestinationHash.Equals(input.DestinationHash)) )); }
public bool Equals(DestinyMilestoneRewardCategoryDefinition input) { if (input == null) { return(false); } return (( CategoryHash == input.CategoryHash || (CategoryHash.Equals(input.CategoryHash)) ) && ( CategoryIdentifier == input.CategoryIdentifier || (CategoryIdentifier != null && CategoryIdentifier.Equals(input.CategoryIdentifier)) ) && ( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( RewardEntries == input.RewardEntries || (RewardEntries != null && RewardEntries.SequenceEqual(input.RewardEntries)) ) && ( Order == input.Order || (Order.Equals(input.Order)) )); }
public bool DeepEquals(DestinyMilestoneDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && DisplayPreference == other.DisplayPreference && Image == other.Image && MilestoneType == other.MilestoneType && Recruitable == other.Recruitable && FriendlyName == other.FriendlyName && ShowInExplorer == other.ShowInExplorer && ShowInMilestones == other.ShowInMilestones && ExplorePrioritizesActivityImage == other.ExplorePrioritizesActivityImage && HasPredictableDates == other.HasPredictableDates && Quests.DeepEqualsDictionary(other.Quests) && Rewards.DeepEqualsDictionary(other.Rewards) && VendorsDisplayTitle == other.VendorsDisplayTitle && Vendors.DeepEqualsList(other.Vendors) && Values.DeepEqualsDictionary(other.Values) && IsInGameMilestone == other.IsInGameMilestone && Activities.DeepEqualsList(other.Activities) && DefaultOrder == other.DefaultOrder && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
/// <summary> /// Initializes a new instance of <see cref="GraphicsOutput" />. /// </summary> /// <param name="adapter">The adapter.</param> /// <param name="outputIndex">Index of the output.</param> /// <exception cref="System.ArgumentNullException">output</exception> /// <exception cref="ArgumentOutOfRangeException">output</exception> internal GraphicsOutput(GraphicsAdapter adapter, DisplayProperties displayProperties, int outputIndex) { if (adapter == null) throw new ArgumentNullException("adapter"); this.outputIndex = outputIndex; this.displayProperties = displayProperties; desktopBounds = new Rectangle(0, 0, (int)displayProperties.PhysicalResolution.Width, (int)displayProperties.PhysicalResolution.Height); }
public MGLDriver( IEmulationInstance emulator, ComponentParameters parameters ) { this.Emu = emulator; this.MemorySystem = this.Emu.Cpu.Memory.MemorySystem; _parameters = parameters; _caps = new MGLCapabilities(); this.Properties = new DisplayProperties(); _statisticsSource = new MGLStatisticsSource( this ); Diag.Instance.Counters.RegisterSource( _statisticsSource ); }
internal static unsafe extern Result vkGetPhysicalDeviceDisplayPropertiesKHR(PhysicalDevice physicalDevice, uint* propertyCount, DisplayProperties* properties);
internal unsafe void GetDisplayProperties(ref uint propertyCount, DisplayProperties* properties) { fixed (uint* __propertyCount__ = &propertyCount) { vkGetPhysicalDeviceDisplayPropertiesKHR(this, __propertyCount__, properties).CheckError(); } }