void ReleaseDesignerOutlets() { if (ProjectsActivityIndicator != null) { ProjectsActivityIndicator.Dispose(); ProjectsActivityIndicator = null; } if (ProjectsCollectionView != null) { ProjectsCollectionView.Dispose(); ProjectsCollectionView = null; } if (ProjectsInstructions != null) { ProjectsInstructions.Dispose(); ProjectsInstructions = null; } }
public async Task LoadData(bool withLoadingBar = false) { if (withLoadingBar) { ProjectsActivityIndicator.StartAnimating(); } var response = await new RestClient().GetProjects(ErrorMessageDialog); if (withLoadingBar) { ProjectsActivityIndicator.StopAnimating(); } if (response.Count > 0) { Queries.AddProjects(response); _projects = response; ProjectsCollectionView.Source = new ProjectsCollectionViewSource(_projects); } }