private void toolStripDropDownButton_period_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { toolStripDropDownButton_period.Text = e.ClickedItem.Text; CryptoCompare.CryptoCompareChartPeriod type = (CryptoCompare.CryptoCompareChartPeriod)Enum.Parse(typeof(CryptoCompare.CryptoCompareChartPeriod), e.ClickedItem.Tag.ToString()); PreferenceManager.CryptoComparePreferences.PeriodType = type; PreferenceManager.UpdatePreferenceFile(PreferenceManager.PreferenceType.CryptoCompare); UpdateUI(); }
private void toolStripDropDownButton_period_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { toolStripDropDownButton_period.Text = e.ClickedItem.Text; CryptoCompare.CryptoCompareChartPeriod type = (CryptoCompare.CryptoCompareChartPeriod)Enum.Parse(typeof(CryptoCompare.CryptoCompareChartPeriod), e.ClickedItem.Tag.ToString()); PreferenceManager.ArbitragePreferences.ChartPeriod = type; PreferenceManager.UpdatePreferenceFile(PreferenceManager.PreferenceType.Arbitrage); //PreferenceManager.CryptoComparePreferences.PeriodType = type; //PreferenceManager.UpdatePreferenceFile(PreferenceManager.PreferenceType.CryptoCompare); //UpdateUI(); //flowLayoutPanel.Controls.Clear(); SetWatchlist(); }