コード例 #1
0
 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();
 }
コード例 #2
0
 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();
 }