Ejemplo n.º 1
0
 public WirelessStateResults StartOperation(
   UIDevice device,
   AOComplete completeFunc)
 {
     this.ResetState();
     return this.StartOperation(device, completeFunc, this._getNetworkListStates);
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public WirelessStateResults StartOperation(
     UIDevice device,
     AOComplete completeFunc)
 {
     this.ResetState();
     return(this.StartOperation(device, completeFunc, this._getConnectedNetworkStates));
 }
Ejemplo n.º 4
0
 public WirelessStateResults StartOperation(
     UIDevice device,
     AOComplete completeFunc)
 {
     this.ResetState();
     return(this.StartOperation(device, completeFunc, this._getDeviceProfileStates));
 }
Ejemplo n.º 5
0
 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));
 }