void Security.ISkyTrakSW.BoxSetNetworkConfig(RIPENetworkConfigType config) { if (this._wrapper != null) { try { this._wrapper.BoxSetNetworkConfig(config); this._configWasChanged = true; } catch (Exception exception1) { Exception exception = exception1; AppLog.Log(string.Concat("Set Network Config Exception: ", exception.Message), true); } } }
public void OnConnectButtonClick() { if (string.IsNullOrEmpty(this._networkNameLabel.text)) { return; } string str = this._networkPasswordInput.text; if (!this._selectedNetwork.NetParams.securityType.Contains("OPEN") && string.IsNullOrEmpty(str)) { return; } RIPENetworkConfigType rIPENetworkConfigType = new RIPENetworkConfigType() { nodeToConfig = 1, password = str, securityType = this._selectedNetwork.NetParams.securityType, SSID = this._selectedNetwork.NetParams.SSID }; SecurityWrapperService.Instance.BoxSetNetworkConfig(rIPENetworkConfigType); this._checkSuccessConnect = true; }