/// <summary> /// Loads the item properties /// </summary> private void LoadProperties() { this.Data = ItemProvider.GetFriendlyNames(this.Item, FriendlyNamesExtraScopes.ItemFullDisplay, this.checkBoxFilterExtraInfo.Checked); // ItemName this.labelItemName.ForeColor = this.Data.Item.GetColor(Data.BaseItemInfoDescription); this.labelItemName.Text = this.Data.FullName.RemoveAllTQTags(); // Base Item Attributes if (this.Data.BaseAttributes.Any()) { this.flowLayoutBaseItemProperties.Controls.Clear(); foreach (var prop in this.Data.BaseAttributes) { this.flowLayoutBaseItemProperties.Controls.Add(ItemTooltip.MakeRow(prop)); } this.flowLayoutBaseItemProperties.Show(); this.labelBaseItemProperties.Show(); } else { this.flowLayoutBaseItemProperties.Hide(); this.labelBaseItemProperties.Hide(); } // Prefix Attributes if (this.Data.PrefixAttributes.Any()) { this.flowLayoutPrefixProperties.Controls.Clear(); foreach (var prop in this.Data.PrefixAttributes) { this.flowLayoutPrefixProperties.Controls.Add(ItemTooltip.MakeRow(prop)); } this.flowLayoutPrefixProperties.Show(); this.labelPrefixProperties.Show(); } else { this.flowLayoutPrefixProperties.Hide(); this.labelPrefixProperties.Hide(); } // Suffix Attributes if (this.Data.SuffixAttributes.Any()) { this.flowLayoutSuffixProperties.Controls.Clear(); foreach (var prop in this.Data.SuffixAttributes) { this.flowLayoutSuffixProperties.Controls.Add(ItemTooltip.MakeRow(prop)); } this.flowLayoutSuffixProperties.Show(); this.labelSuffixProperties.Show(); } else { this.flowLayoutSuffixProperties.Hide(); this.labelSuffixProperties.Hide(); } }
public Result(string container, string containerName, int sackNumber, SackType sackType, ToFriendlyNameResult fnames) { this.Container = container ?? throw new ArgumentNullException(nameof(container)); this.ContainerName = containerName ?? throw new ArgumentNullException(nameof(containerName)); this.SackNumber = sackNumber; this.SackType = sackType; this.FriendlyNames = fnames ?? throw new ArgumentNullException(nameof(fnames)); this.ItemName = fnames.FullNameClean; this.ItemStyle = fnames.Item.ItemStyle; this.TQColor = fnames.Item.ItemStyle.TQColor(); this.RequiredLevel = GetRequirement(fnames.RequirementVariables.Values, "levelRequirement"); }
/// <summary> /// Loads the item properties /// </summary> private void LoadProperties() { this.Data = ItemProvider.GetFriendlyNames(this.Item, FriendlyNamesExtraScopes.ItemFullDisplay, this.checkBoxFilterExtraInfo.Checked); // ItemName this.labelItemName.ForeColor = this.Data.Item.GetColor(Data.BaseItemInfoDescription); this.labelItemName.Text = this.Data.FullNameClean; // Base Item Attributes if (this.Data.BaseAttributes.Any()) { this.flowLayoutBaseItemProperties.Controls.Clear(); if (!this.checkBoxFilterExtraInfo.Checked) { this.flowLayoutBaseItemProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService, this.Data.BaseItemId, FGColor: ItemStyle.Relic.Color())); } foreach (var prop in this.Data.BaseAttributes) { this.flowLayoutBaseItemProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService, prop)); } this.flowLayoutBaseItemProperties.Show(); this.labelBaseItemProperties.Show(); } else { this.flowLayoutBaseItemProperties.Hide(); this.labelBaseItemProperties.Hide(); } // Prefix Attributes if (this.Data.PrefixAttributes.Any()) { this.flowLayoutPrefixProperties.Controls.Clear(); if (!this.checkBoxFilterExtraInfo.Checked) { this.flowLayoutPrefixProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService, this.Data.PrefixInfoRecords.Id, FGColor: ItemStyle.Relic.Color())); } foreach (var prop in this.Data.PrefixAttributes) { this.flowLayoutPrefixProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService, prop)); } this.flowLayoutPrefixProperties.Show(); this.labelPrefixProperties.Show(); } else { this.flowLayoutPrefixProperties.Hide(); this.labelPrefixProperties.Hide(); } // Suffix Attributes if (this.Data.SuffixAttributes.Any()) { this.flowLayoutSuffixProperties.Controls.Clear(); if (!this.checkBoxFilterExtraInfo.Checked) { this.flowLayoutSuffixProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService, this.Data.SuffixInfoRecords.Id, FGColor: ItemStyle.Relic.Color())); } foreach (var prop in this.Data.SuffixAttributes) { this.flowLayoutSuffixProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService, prop)); } this.flowLayoutSuffixProperties.Show(); this.labelSuffixProperties.Show(); } else { this.flowLayoutSuffixProperties.Hide(); this.labelSuffixProperties.Hide(); } }
public bool Apply(ToFriendlyNameResult item) => false;
public bool Apply(ToFriendlyNameResult item) => true;
public bool Apply(ToFriendlyNameResult item) => this.ItemStyleService.Translate(item.Item.ItemStyle).ToUpperInvariant().Contains(quality.ToUpperInvariant());