예제 #1
0
파일: Form1.cs 프로젝트: SuffArt/BitWhiskey
        public Form1()
        {
            InitializeComponent();
            Helper.Init();

            Global.uiScheduler = TaskScheduler.FromCurrentSynchronizationContext();

            toolStripComboBoxMarket.Items.Clear();
            foreach (var market in Global.markets.GetMarketList())
            {
                toolStripComboBoxMarket.Items.Add(market.ToString());
            }

            RequestConsumer.requestManager.Create(Global.markets.GetMarketList());
            RequestConsumer.CreateRequestThreads(Global.markets.GetMarketList());

            timerMarkets = new AppTimer(45000, TimerMarkets_Tick, this);
            toolStripComboBoxMarket.SelectedIndex = 0;
        }