private void RetrieveLatestAssignments() { if (!TpAuthenticationManager.Instance.IsAuthenticatedWithLoginForm) { return; } var myAssigmentsService = ServiceManager.GetService <MyAssignmentsService>(); try { assignments = myAssigmentsService.GetMyAssigments(); } catch { Messenger.ShowIncorrectVersionError(); } }
public void ChangeState(int assignableID, int stateID) { _assignmentsRefreshTimer.Stop(); var myAssigmentsService = ServiceManager.GetService <MyAssignmentsService>(); myAssigmentsService.ChangeStateCompleted += OnChangeStateCompleted; try { myAssigmentsService.ChangeStateAsync(assignableID, stateID); } catch (SoapException) { Messenger.ShowIncorrectVersionError(); } }
void IAssignmentsRetriever.StartRetrieving() { if (!TpAuthenticationManager.Instance.IsAuthenticated) { return; } AssignmentsRefreshTimer.Stop(); var myAssigmentsService = ServiceManager.GetService <MyAssignmentsService>(); myAssigmentsService.GetMyAssigmentsCompleted += OnGetMyAssigmentsCompleted; try { myAssigmentsService.GetMyAssigmentsAsync(); } catch (SoapException) { Messenger.ShowIncorrectVersionError(); } }