private void GetData() { var client = new TimekeeperPortClient(); client.getProjectsCompleted += ClientGetProjectsCompleted; client.getProjectsAsync(GetUserName()); }
private bool SendData(string userName, string data) { var portClient = new TimekeeperPortClient(); System.Diagnostics.Debug.WriteLine("user name: ", userName); System.Diagnostics.Debug.WriteLine("Saving to webservice data: ", data); var result = portClient.storeActivity(userName, data); if (result.status.ToUpper() == "SUCCESS") { return(true); } return(false); }