async void LoadData(int id) { if (Skills == null) { Skills = await MHDatabaseHelper.GetSkillsForSkillTree(id); } if (SkillTree == null) { SkillTree = await MHDatabaseHelper.GetSkillTree(id); } //TODO:Probably can make this better if (HeadArmor == null) { HeadArmor = await MHDatabaseHelper.GetArmorForSkillTree(id, "Head"); } if (BodyArmor == null) { BodyArmor = await MHDatabaseHelper.GetArmorForSkillTree(id, "Body"); } if (ArmsArmor == null) { ArmsArmor = await MHDatabaseHelper.GetArmorForSkillTree(id, "Arms"); } if (WaistArmor == null) { WaistArmor = await MHDatabaseHelper.GetArmorForSkillTree(id, "Waist"); } if (LegsArmor == null) { LegsArmor = await MHDatabaseHelper.GetArmorForSkillTree(id, "Legs"); } if (Decorations == null) { Decorations = await MHDatabaseHelper.GetDecorationsForSkillTree(id); } }