예제 #1
0
        public static void LoadFamilyFromProperties()
        {
            FamilyMembers.Clear();

            if (Application.Current.Properties.ContainsKey(FAMILY_MEMBERS_PROPERTIES_KEY))
            {
                string json = Application.Current.Properties[FAMILY_MEMBERS_PROPERTIES_KEY] as string;

                if (json != null)
                {
                    List <FamilyMember> theFam = Newtonsoft.Json.JsonConvert.DeserializeObject <List <FamilyMember> >(json);

                    FamilyMembers.AddRange(theFam);
                }
            }
        }