void SetCurrentDNSExcute() { string[] dns = new string[] { ActiveDNS.DNS1, ActiveDNS.DNS2 }; NetworkSetting.SetDNS(dns); SystemDNS.RefreshSystemDNS(); }
/// <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(); }
void RefreshSystemDNSExcute() { SystemDNS.RefreshSystemDNS(); }