void LoadData(TodoItem todo) { var list = new List <TodoItem> { Todo }; Map.AddAnnotations(TodoAnnotation.FromList(list)); }
void LoadData() { #if DEBUG // DEMO: in Seattle var coordinate = new CLLocationCoordinate2D(47.620422, -122.349358); var span = new MKCoordinateSpan(0.00978871051851371, 0.00816739331921212); Map.Region = new MKCoordinateRegion(coordinate, span); #endif var todos = AppDelegate.Current.TodoMgr.GetOrderedTodos().ToList(); if (todos != null) { Map.AddAnnotations(TodoAnnotation.FromList(todos)); } }