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); } }
private void currentServerLabel_Click(object sender, EventArgs e) { MessageBox.Show(DnsController.isSafe(true).ToString()); }