Exemple #1
0
        private void GetData()
        {
            var client = new TimekeeperPortClient();

            client.getProjectsCompleted += ClientGetProjectsCompleted;
            client.getProjectsAsync(GetUserName());
        }
Exemple #2
0
        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);
        }