示例#1
0
        public void SetWelcomeLabel()
        {
            int    hour        = DateTime.Now.Hour;
            string welcomeText = "";

            if (hour >= 0 && hour <= 4)
            {
                welcomeText = "לילה טוב לך, ";
            }
            if (hour >= 5 && hour <= 11)
            {
                welcomeText = "בוקר טוב לך, ";
            }
            if (hour >= 12 && hour <= 15)
            {
                welcomeText = "צהריים טובים לך, ";
            }
            if (hour >= 16 && hour <= 19)
            {
                welcomeText = "אחר הצהריים טובים, ";
            }
            if (hour >= 20 && hour <= 23)
            {
                welcomeText = "לילה טוב לך, ";
            }
            welcomeLabel.Content = welcomeText + FilteringSystem.GetCurrentFilteringSettings().GetAdminName();
        }
示例#2
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();
 }
示例#3
0
 private bool IsFirstOpening()
 {
     // return false;
     return(FilteringSystem.GetCurrentFilteringSettings() == null);
 }