public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     PrepareContactFirstList.Prepare();
     participationDs = new ParticipationDataSource(this);
     participationTableView.Source = participationDs;
 }
Пример #2
0
 public static void readContacts()
 {
     AppData.offlineContactList = new List <ContactClass>();
     if (!File.Exists(contactsPath))
     {
         PrepareContactFirstList.Prepare();
     }
     else
     {
         using (StreamReader file = File.OpenText(contactsPath))
         {
             JsonSerializer serializer = new JsonSerializer();
             // Deserialize the data and cast it into the list
             AppData.offlineContactList = (List <ContactClass>)serializer.Deserialize(file,
                                                                                      typeof(List <ContactClass>));
         }
     }
 }