Пример #1
0
 private Boolean ServerChecking()
 {
     if (DnsController.isSafe(false))
     {
         currentServerLabel.Text      = "שרת מסונן";
         currentServerLabel.ForeColor = Color.LimeGreen;
         return(true);
     }
     else
     {
         currentServerLabel.Text      = "שרת פתוח";
         currentServerLabel.ForeColor = Color.Red;
         if (FilteringSystem.IsOn() && FilteringSystem.IsSafeServerOn())
         {
             DnsController.setMode(true);
         }
         return(false);
     }
 }
Пример #2
0
 private void currentServerLabel_Click(object sender, EventArgs e)
 {
     MessageBox.Show(DnsController.isSafe(true).ToString());
 }