예제 #1
0
 private void UpdateSystemStatus()
 {
     new Thread(() =>
     {
         UpdateGUIStatus("/images/statusPage/status_on.png", "/images/statusPage/status_off.png", FilteringSystem.GetSystemStatus(), systemStatusToggle);
     }).Start();
 }
예제 #2
0
 private void systemStatusToggle_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     FilteringSystem.SetSystemStatus(!FilteringSystem.GetSystemStatus());
 }
예제 #3
0
 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();
 }