public int GetAgentState(int AgentLogin) { object[] results = this.Invoke("GetAgentState", new object[] { AgentLogin}); return ((int)(results[0])); }