示例#1
0
 public WirelessNetworkTypeCommand(
     IModelItemOwner owner,
     string description,
     EventHandler handler,
     WlanAuthCipherPair pair)
     : base(owner, description, handler)
 {
     this._networkType = pair;
 }
示例#2
0
 public WirelessType(
     WlanAuthCipherPair type,
     string description,
     bool displayType,
     bool alwaysSupported,
     bool newGroup)
 {
     this._type            = type;
     this._description     = description;
     this._alwaysSupported = alwaysSupported;
     this._newGroup        = newGroup;
     this._displayType     = displayType;
 }
示例#3
0
        public int GetNetworkTypeIndex(WirelessAuthenticationTypes auth, WirelessCiphers cipher)
        {
            int num = 0;

            if (this.wirelessNetworkTypesChoice != null && this.wirelessNetworkTypesChoice.Options != null)
            {
                for (int index = 0; index < this.wirelessNetworkTypesChoice.Options.Count; ++index)
                {
                    WirelessNetworkTypeCommand option             = this.wirelessNetworkTypesChoice.Options[index] as WirelessNetworkTypeCommand;
                    WlanAuthCipherPair         wlanAuthCipherPair = null;
                    if (option != null)
                    {
                        wlanAuthCipherPair = option.NetworkType;
                    }
                    if (wlanAuthCipherPair != null && wlanAuthCipherPair.Auth == auth && (wlanAuthCipherPair.Cipher == cipher || this.IsWEP(wlanAuthCipherPair.Cipher) && this.IsWEP(cipher)))
                    {
                        num = index;
                        break;
                    }
                }
            }
            return(num);
        }