Exemple #1
0
 public void MenuSettingsUpdateDayImages(object sender, EventArgs e)
 {
     ImageSettings.PopupMenuForDayImages();
 }
Exemple #2
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;
        }