private void UserControl_Loaded(object sender, RoutedEventArgs e) { labelItemName.Content = WowItem.Name; labelItemId.Content = WowItem.Id; if (WowItem.GetType() == typeof(WowWeapon)) { labelIcon.Content = "๐ก"; } else if (WowItem.GetType() == typeof(WowArmor)) { labelIcon.Content = "๐ก"; } else if (WowItem.GetType() == typeof(WowConsumable)) { labelIcon.Content = "๐"; } else if (WowItem.GetType() == typeof(WowContainer)) { labelIcon.Content = "๐"; } else if (WowItem.GetType() == typeof(WowGem)) { labelIcon.Content = "๐"; } else if (WowItem.GetType() == typeof(WowKey)) { labelIcon.Content = "๐๏ธ"; } else if (WowItem.GetType() == typeof(WowMoneyItem)) { labelIcon.Content = "๐ฐ"; } else if (WowItem.GetType() == typeof(WowProjectile) || WowItem.GetType() == typeof(WowQuiver)) { labelIcon.Content = "๐น"; } else if (WowItem.GetType() == typeof(WowQuestItem)) { labelIcon.Content = "๐ก"; } else if (WowItem.GetType() == typeof(WowReagent)) { labelIcon.Content = "๐งช"; } else if (WowItem.GetType() == typeof(WowRecipe)) { labelIcon.Content = "๐"; } else if (WowItem.GetType() == typeof(WowTradegood)) { labelIcon.Content = "๐ฆ"; } else if (WowItem.GetType() == typeof(WowMiscellaneousItem)) { labelIcon.Content = "๐ฆ"; } else { labelIcon.Content = "โ"; } labelItemType.Content = $"{WowItem.Type} - {WowItem.Subtype} - iLvl {WowItem.ItemLevel} - {WowItem.Durability}/{WowItem.MaxDurability}"; labelItemName.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString(BotUtils.GetColorByQuality(WowItem.ItemQuality))); }