Exemple #1
0
        /// <summary>
        /// Loads the phone book from local disk.
        /// </summary>
        private static void LoadPhoneBook()
        {
            var json = File.ReadAllText(SettingsJsonPath);

            PhoneBook = JsonConvert.DeserializeObject <PhoneBook>(json);
        }
Exemple #2
0
 /// <summary>
 /// Create an empty phone book and save object to local disk.
 /// </summary>
 private static void CreateNewPhoneBook()
 {
     PhoneBook = new PhoneBook();
     SavePhoneBook();
 }