public override void Initialize(OptimusMiniSettingsList currentSettings) { _Bitmap = new Bitmap(96, 96, PixelFormat.Format16bppRgb565); _Graphic = Graphics.FromImage(_Bitmap); _Data = new WeatherData(); _DataProvider = new WeatherDataProvider(); _TitleFont = new Font("Tahoma", 12f, FontStyle.Bold, GraphicsUnit.Pixel); _SmallFont = SystemFonts.DefaultFont; _DisplayType = -1; if (currentSettings["ShowToday"] == "") { _ShowToday = true; } else { _ShowToday = (currentSettings["ShowToday"] == "1"); } if (currentSettings["ShowTomorrow"] == "") { _ShowTomorrow = true; } else { _ShowTomorrow = (currentSettings["ShowTomorrow"] == "1"); } if (currentSettings["ShowDayAfterTomorrow"] == "") { _ShowDayAfterTomorrow = true; } else { _ShowDayAfterTomorrow = (currentSettings["ShowDayAfterTomorrow"] == "1"); } if (currentSettings["ShowWeekend"] == "") { _ShowWeekend = true; } else { _ShowWeekend = (currentSettings["ShowWeekend"] == "1"); } if (currentSettings["Wait"] != "") { _Wait = int.Parse(currentSettings["Wait"]); } else { _Wait = 30; } _LocationCode = currentSettings["LocationCode"]; _Unit = currentSettings["Unit"]; if (_Unit == "") { _Unit = "m"; } if (_Unit == "m") { _UnitSign = "°"; } else { _UnitSign = "°F"; } RequestNextUpdate(new TimeSpan(0, 0, 3)); // Slight delay to display logo once }