Beispiel #1
0
 private void toolStripComboBoxMarket_SelectedIndexChanged(object sender, EventArgs e)
 {
     dgridMarkets.DataSource = null;
     this.ActiveControl      = dgridMarkets;
     timerMarkets.Stop();
     LoadTickers();
 }
Beispiel #2
0
        private void FormChart_Load(object sender, EventArgs e)
        {
            Text = "Chart " + market.MarketName();
            LoadTickers();

            // form created with some ticker
            if (ticker != "BTC_BTC")
            {
                timerLastPrice.Stop();
                chart      = null;
                tradeLogic = new FormTradeLogic(ticker, market);
                int dayCount = 6;
                if (totalPeriod != TotalPeriod.Default)
                {
                    dayCount = GetTotalPeriodDayCount();
                }
                tradeLogic.GetPriceHistoryByPeriod("Min5", DateTime.Now.AddDays(-dayCount), DateTime.Now.AddYears(10), listBoxTicker_SelectedIndexChanged_UIResultHandler);
                totalPeriod = TotalPeriod.Default;
                PrintTotalPeriod();
            }
        }
Beispiel #3
0
 private void FormChart_FormClosed(object sender, FormClosedEventArgs e)
 {
     timerLastPrice.Stop();
     if (chart != null)
     {
         chart.Dispose();
         chart = null;
     }
     parent.Activate();
     if (parent.WindowState == FormWindowState.Minimized)
     {
         parent.WindowState = FormWindowState.Normal;
     }
 }
Beispiel #4
0
 private void FormAlertMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     timerUpdateAlerts.Stop();
 }