public void UpdateSelectableSkills() { _SelectableSkills.Clear(); _SelectableSkills.AddRange(from x in Monster.SkillsList.Keys where (SelectableSkillsFilter(x)) select x); AvailableSkillsTable.ReloadData(); _CurrentSkills = new List <SkillValue>(from x in CurrentMonster.SkillValueList orderby x.FullName select x); KnownSkillsTable.ReloadData(); UpdateSkillButtons(); }
void ReleaseDesignerOutlets() { if (AddSkillButton != null) { AddSkillButton.Dispose(); AddSkillButton = null; } if (AuraButton != null) { AuraButton.Dispose(); AuraButton = null; } if (AvailableSkillsTable != null) { AvailableSkillsTable.Dispose(); AvailableSkillsTable = null; } if (BaseAtkButton != null) { BaseAtkButton.Dispose(); BaseAtkButton = null; } if (BaseView != null) { BaseView.Dispose(); BaseView = null; } if (CMBButton != null) { CMBButton.Dispose(); CMBButton = null; } if (CMDButton != null) { CMDButton.Dispose(); CMDButton = null; } if (DescriptionView != null) { DescriptionView.Dispose(); DescriptionView = null; } if (GearButton != null) { GearButton.Dispose(); GearButton = null; } if (KnownSkillsTable != null) { KnownSkillsTable.Dispose(); KnownSkillsTable = null; } if (LanguagesButton != null) { LanguagesButton.Dispose(); LanguagesButton = null; } if (ModView != null) { ModView.Dispose(); ModView = null; } if (RacialModsButton != null) { RacialModsButton.Dispose(); RacialModsButton = null; } if (SkillDetailButton != null) { SkillDetailButton.Dispose(); SkillDetailButton = null; } if (SkillDetailSelectButton != null) { SkillDetailSelectButton.Dispose(); SkillDetailSelectButton = null; } if (SkillsView != null) { SkillsView.Dispose(); SkillsView = null; } if (SQButton != null) { SQButton.Dispose(); SQButton = null; } }