コード例 #1
0
ファイル: AuthRequest.cs プロジェクト: FSLASER/simplewifi
        internal bool Process()
        {
            if (!IsPasswordValid)
            {
                return(false);
            }

            string profileXML = ProfileFactory.Generate(_network, Password);

            _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true);

            return(!_isEAPStore || SaveToEAP());
        }
コード例 #2
0
ファイル: AuthRequest.cs プロジェクト: zjbpku/simplewifi
        internal bool Process()
        {
            if (!IsPasswordValid)
            {
                return(false);
            }

            string profileXML = ProfileFactory.Generate(_network, _password, _ssidBroadcast);

            _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true);

            if (_isEAPStore && !SaveToEAP())
            {
                return(false);
            }

            return(true);
        }
コード例 #3
0
        public bool Process()
        {
            if (!IsPasswordValid)
            {
                return(false);
            }

            profileXML = ProfileFactory.Generate(_network, _password);
            try
            {
                _interface.SetProfile(WlanProfileFlags.AllUser, profileXML, true);
            }
            catch (Exception e)
            {
                // throw new Exception(e.Message);
            }

            if (_isEAPStore && !SaveToEAP())
            {
                return(false);
            }

            return(true);
        }