Ejemplo n.º 1
0
        void ChangeExternalId(string oldId, Task newTask)
        {
            if (string.IsNullOrWhiteSpace(oldId))
            {
                return;
            }

                        #if Win8
            await
                        #endif
            Login();

            if (loggedUser != null)
            {
                NuTask remoteTask = new NuTask();
                remoteTask.Body       = newTask.Notes;
                remoteTask.Completed  = newTask.Done;
                remoteTask.ExternalId = newTask.ID.ToString();
                remoteTask.Subject    = newTask.Name;
#if Win8
                await wsdl.ChangeTaskExternalIdAsync(clientAccount, loggedUser, oldId, remoteTask);
#else
#if WINDOWS_PHONE
                wsdl.ChangeTaskExternalIdAsync(clientAccount, loggedUser, oldId, remoteTask);
#else
                wsdl.ChangeTaskExternalId(clientAccount, loggedUser, oldId, remoteTask);
#endif
#endif
            }
        }