public WirelessStateResults StartOperation( UIDevice device, AOComplete completeFunc) { this.ResetState(); return this.StartOperation(device, completeFunc, this._getNetworkListStates); }
protected WirelessStateResults StartOperation( UIDevice device, AOComplete completeFunc, WirelessStates[] states) { WirelessStateResults result = WirelessStateResults.Error; if (!this.Idle) { return(WirelessStateResults.NotAvailable); } this.ResetState(); this._device = device; this._states = states; this._completeFunc = completeFunc; _iCurrentState = 0; if (device.IsConnectedToClient) { this.AddListenersInternal(); result = this.DoNextStep(); } if (result != WirelessStateResults.Success) { this.EndOperationInternal(result); } return(WirelessStateResults.Success); }
public WirelessStateResults StartOperation( UIDevice device, AOComplete completeFunc) { this.ResetState(); return(this.StartOperation(device, completeFunc, this._getConnectedNetworkStates)); }
public WirelessStateResults StartOperation( UIDevice device, AOComplete completeFunc) { this.ResetState(); return(this.StartOperation(device, completeFunc, this._getDeviceProfileStates)); }
public WirelessStateResults StartOperation( UIDevice device, AOComplete completeFunc, WlanProfile newProfile) { if (newProfile == null) { return(WirelessStateResults.Error); } this.ResetState(newProfile); return(this.StartOperation(device, completeFunc, this._setProfileStates)); }
public WirelessStateResults StartOperation( UIDevice device, AOComplete completeFunc, bool fIgnoreErrors) { this.ResetState(fIgnoreErrors); WirelessStates[] states; if (device.SupportsWirelessSetupMethod1) { states = this._clearWirelessSettingsStatesMethod1; } else if (device.SupportsWirelessSetupMethod2) { states = this._clearWirelessSettingsStatesMethod2; } else { ShipAssert.Assert(false); return(WirelessStateResults.Error); } return(this.StartOperation(device, completeFunc, states)); }