Esempio n. 1
0
        void SetCurrentDNSExcute()
        {
            string[] dns = new string[] {
                ActiveDNS.DNS1,
                ActiveDNS.DNS2
            };

            NetworkSetting.SetDNS(dns);
            SystemDNS.RefreshSystemDNS();
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            ////if (IsInDesignMode)
            ////{
            ////    // Code runs in Blend --> create design time data.
            ////}
            ////else
            ////{
            ////    // Code runs "for real"
            ////}


            SystemDNS.RefreshSystemDNS();
        }
Esempio n. 3
0
 void RefreshSystemDNSExcute()
 {
     SystemDNS.RefreshSystemDNS();
 }