}// end of method btnApply_Click #endregion #region Combo Box Events private void cboRefreshInterval_SelectedValueChanged(object sender, EventArgs e) { int selectedInterval = int.Parse(cboRefreshInterval.SelectedItem.ToString()).MinutesToMilliseconds(); if (selectedInterval != WeatherLionMain.storedPreferences.StoredPreferences.Interval) { // notify the widget of this update if (!WeatherLionMain.runningWidget.preferenceUpdated.ContainsKey( WeatherLionMain.UPDATE_INTERVAL)) { WeatherLionMain.runningWidget.preferenceUpdated.Add(WeatherLionMain.UPDATE_INTERVAL, UtilityMethod.MinutesToMilliseconds(int.Parse(cboRefreshInterval.Text)).ToString()); }// end of if block lblInterval.Text = $"{cboRefreshInterval.Text} min."; } // end of if block } // end of method cboRefreshInterval_SelectedValueChanged