예제 #1
0
        /// <summary>
        /// Crates the wireless network profile and saves
        /// </summary>
        /// <returns>Returns true if it is successfully else returns false</returns>
        internal bool Process()
        {
            if (!IsPasswordValid)
            {
                return(false);
            }

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

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

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

            return(true);
        }