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

            NetworkSetting.SetDNS(dns);
            SystemDNS.RefreshSystemDNS();
        }
Beispiel #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();
        }
Beispiel #3
0
 void RefreshSystemDNSExcute()
 {
     SystemDNS.RefreshSystemDNS();
 }