void ReleaseDesignerOutlets() { if (ProjectNameLabel != null) { ProjectNameLabel.Dispose(); ProjectNameLabel = null; } if (TaskNameLabel != null) { TaskNameLabel.Dispose(); TaskNameLabel = null; } if (TaskTimeLogTable != null) { TaskTimeLogTable.Dispose(); TaskTimeLogTable = null; } if (TimelogsLabel != null) { TimelogsLabel.Dispose(); TimelogsLabel = null; } }
private async void refreshData() { try { timeLogCache = await PDashAPI.Controller.GetTimeLogs(0, null, null, taskId, null); TaskTimeLogTable.Source = new TaskTimeLogTableSource(timeLogCache, this); TaskTimeLogTable.ReloadData(); } catch (Exception ex) { ViewControllerHelper.ShowAlert(this, null, ex.Message + " Please try again later."); } }