Exemplo n.º 1
0
        private void RefreshSettings()
        {
            Dictionary <TimeSpan, string> NightTimeImages;
            SunSettings Settings = new SunSettings(location);

            SunRise         = Settings.SunriseTime;
            SunSet          = Settings.SunsetTime;
            ImageSpans      = ImageSettings.GenerateDayImages(ImageSettings.GetDayImagesFromConfig() ?? ImageSettings.PopupMenuForDayImages(), SunRise, SunSet);
            NightTimeImages = ImageSettings.GenerateNightImages(ImageSettings.GetNightImagesFromConfig() ?? ImageSettings.PopupMenuForNightImages(), SunRise, SunSet);
            foreach (KeyValuePair <TimeSpan, string> item in NightTimeImages)
            {
                ImageSpans.Add(item.Key, item.Value);
            }
            LastDayUpdates = (byte)DateTime.Now.Day;
        }
Exemplo n.º 2
0
 public void MenuSettingsUpdateNightImages(object sender, EventArgs e)
 {
     ImageSettings.PopupMenuForNightImages();
 }