public static ResultState[] GetResultStateList() { ResultState[] res = null; LoginResult loginResult = getLoginResult(); CxWebServiceClient client; try { client = new CxWebServiceClient(loginResult.AuthenticationData); } catch (Exception e) { Logger.Create().Error(e.ToString()); MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK); return(null); } CxWSResponseResultStateList CxWSResponseResults = client.ServiceClient.GetResultStateList(loginResult.SessionId); if (!CxWSResponseResults.IsSuccesfull) { // show error message MessageBox.Show(CxWSResponseResults.ErrorMessage, "Error", MessageBoxButtons.OK); return(null); } res = loginResult.AuthenticationData.ManageResultsExploitability ? CxWSResponseResults.ResultStateList : RemoveNotExploitableFromArray(CxWSResponseResults.ResultStateList); return(res); }
public CxWSResponseResultStateList GetResultStateList(string sessionID) { CxWSResponseResultStateList result = _web_Service.GetResultStateList(sessionID); return(result); }