private void _auth0LVM_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            Auth0Model loginm = sender as Auth0Model;

            if (loginm == null)
            {
                return;
            }
            string propertyName = e.PropertyName;

            if (propertyName == "IsUserLoggedIn")
            {
                if (!loginm.IsUserLoggedIn)
                {
                    if (this._wanServer != null)
                    {
                        this._wanServer.Disconnect();
                    }
                    RadioList.RemoveAllWanRadios();
                    _userSettingsEditor.Clear();
                    _userSettingsServer.Clear();
                    return;
                }
                this._wanConnectARE.Set();
            }
        }
        public SmartLinkSettings(WanServer wanServer, FlexRadioList radioListVm)
        {
            string domain   = "frtest.auth0.com";
            string clientId = "4Y9fEIIsVYyQo5u6jr7yBWc4lV5ugC2m";

            Auth0LVM = new Auth0Model(new Auth0Client(domain, clientId, 900, 630, false));
            this._auth0LVM.PropertyChanged += this._auth0LVM_PropertyChanged;

            this._wanServer = wanServer;
            this._wanServer.PropertyChanged += this._wanServer_PropertyChanged;
            this._wanServer.WanApplicationRegistrationInvalid += this._wanServer_WanApplicationRegistrationInvalid;

            this.RadioList = radioListVm;
            Task.Factory.StartNew(delegate
            {
                this._auth0LVM.LoginWithRefreshTokenNoUI();
            }, TaskCreationOptions.LongRunning);

            Task.Factory.StartNew(delegate
            {
                this.WanServerConnectThread();
            }, TaskCreationOptions.LongRunning);
        }