public WirelessNetworkTypeCommand( IModelItemOwner owner, string description, EventHandler handler, WlanAuthCipherPair pair) : base(owner, description, handler) { this._networkType = pair; }
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; }
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); }