private void UpdateSystemStatus() { new Thread(() => { UpdateGUIStatus("/images/statusPage/status_on.png", "/images/statusPage/status_off.png", FilteringSystem.GetSystemStatus(), systemStatusToggle); }).Start(); }
private void systemStatusToggle_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { FilteringSystem.SetSystemStatus(!FilteringSystem.GetSystemStatus()); }
private void UpdateSafeServerStatus() { new Thread(() => { if ((DnsController.IsSafe(false) == false) && (FilteringSystem.GetCurrentFilteringSettings().isSafeServerOn) && (FilteringSystem.GetSystemStatus() == true)) { DnsController.SetMode(true); } UpdateGUIStatus("/images/statusPage/safeserver_on.png", "/images/statusPage/safeserver_off.png", DnsController.IsSafe(false), safeServerToggle); }).Start(); }