private void ToggleAllAbnormalitiesInTab(bool enable)
        {
            ScrollViewer SelectedAbnormalityContainer = AbnormalitySelectionContainer.SelectedContent as ScrollViewer;
            WrapPanel    SelectedAbnormalityPanel     = SelectedAbnormalityContainer.Content as WrapPanel;

            foreach (UIElement RawAbnormality in SelectedAbnormalityPanel.Children)
            {
                Parts.AbnormalitySettingControl AbnormalityDisplay = (Parts.AbnormalitySettingControl)RawAbnormality;
                AbnormalityDisplay.IsEnabled = enable;
            }
        }
 private void PopulateDebuffs()
 {
     foreach (XmlNode Abnorm in AbnormalityData.GetBlightAbnormalities())
     {
         string      Type       = "DEBUFF";
         int         ID         = int.Parse(Abnorm.Attributes["ID"].Value);
         string      Name       = GStrings.GetAbnormalityByID(Type, ID, 0);
         string      InternalID = $"DE_{ID}";
         bool        IsEnabled  = UserSettings.PlayerConfig.Overlay.AbnormalitiesWidget.BarPresets[BuffTrayIndex].AcceptedAbnormalities.Contains(InternalID);
         ImageSource Icon       = TryFindResource(Abnorm.Attributes["Icon"].Value) as ImageSource ?? FindResource("ICON_MISSING") as ImageSource;
         Icon?.Freeze();
         Parts.AbnormalitySettingControl AbnormDisplay = new Parts.AbnormalitySettingControl();
         AbnormDisplay.SetAbnormalityInfo(Icon, Name, InternalID, IsEnabled);
         AbnormalitiesList.Add(AbnormDisplay);
         Debuffs.Children.Add(AbnormDisplay);
     }
 }