private void ProcessPhoneForWizard(UIDevice device) { if (this._deviceArrivalTimer != null) { this._deviceArrivalTimer.Stop(); } SingletonModelItem <UIDeviceList> .Instance.DeviceConnectedEvent -= new DeviceListEventHandler(this.OnDeviceConnected); SingletonModelItem <UIDeviceList> .Instance.AllowDeviceConnections = false; if (device.Class == DeviceClass.WindowsPhone && device.Relationship == DeviceRelationship.None && !device.RequiresAutoRestore) { if (device.SupportsOOBECompleted && !device.OOBECompleted) { SingletonModelItem <UIDeviceList> .Instance.HideDevice(device); DeviceManagement.ShowDeviceOOBEIncompleteDialog(); this.WizardType = FirstLaunchWizardType.Standard; } else { SingletonModelItem <UIDeviceList> .Instance.DeviceDisconnectedEvent += new DeviceListEventHandler(this.OnDeviceDisconnected); this.WizardType = FirstLaunchWizardType.PhoneFirstConnect; } } else { this.WizardType = FirstLaunchWizardType.Standard; } }