private void loadCachedData() { //FoodItems fiSync = mainLogic.Load <List <FoodItemSync> >(typeof(List <FoodItemSync>)); if (fiSync == null) { fiSync = new List <FoodItemSync>(); } else { if (fiSync.Count > 0) { status.NeedsToSync(); } } //Exercises exerciseSync = mainLogic.Load <List <ExerciseSync> >(typeof(List <ExerciseSync>)); if (exerciseSync == null) { exerciseSync = new List <ExerciseSync>(); } else { if (exerciseSync.Count > 0) { status.NeedsToSync(); } } //Weights weights = mainLogic.Load <List <Weight> >(typeof(List <Weight>)); if (weights == null) { weights = new List <Weight>(); } else { if (weights.Count > 0) { status.NeedsToSync(); } } }