private void AddHouseholdDevice()
 {
     openTasks++;
     HouseholdDeviceService.Delete(MASTER_DEVICE)
     .SetCompletion(new OnCompletedHandler <bool>(OnHouseholdDeviceDeleteComplete))
     .Execute(client);
 }
        public void OnHouseholdDeviceAddComplete(HouseholdDevice householdDevice, Exception error)
        {
            if (error != null)
            {
                Console.WriteLine("Failed to delete household device: " + error.Message);
                code      = -1;
                openTasks = 0;
                return;
            }

            HouseholdDeviceService.Delete(householdDevice.Udid)
            .SetCompletion(new OnCompletedHandler <bool>(OnHouseholdDeviceDeleteComplete))
            .Execute(client);
        }