Пример #1
0
        private void comboBoxExchange_SelectedIndexChanged(object sender, EventArgs e)
        {
            dataGridViewParser.Rows.Clear();
            reloadTable          = false;
            buttonFind.BackColor = Color.Green;
            buttonFind.Text      = "Start";
            textBoxLink.Clear();
            textBoxSearchPair.Clear();
            listBoxPair.Items.Clear();



            switch (comboBoxExchange.Text)
            {
            case "Yobit":
                client.EndPoint = strResponsePair;
                string strResponse = client.MakeRequest();
                Yobit.ListBoxFiller(jsonDeserialize, strResponse, listBoxPair, textBoxLog);
                break;

            case "Binance":
                client.EndPoint = strResponseBinExchangeInfo;
                strResponse     = client.MakeRequest();
                Binance.ListBoxFiller(jsonDeserialize, strResponse, listBoxPair, textBoxLog);
                break;
            }
        }
Пример #2
0
 private void timerReloadParse_Tick(object sender, EventArgs e)
 {
     switch (comboBoxExchange.Text)
     {
     case "Yobit":
         Yobit.StreamDataGrid(reloadTable, dataGridViewParser, textBoxLog, textBoxLink, client, jsonDeserialize);
         break;
     }
 }
Пример #3
0
        private void buttonFind_Click(object sender, EventArgs e)
        {
            string _strResponseTicker = strResponseTicker;

            reloadTable = !reloadTable;
            switch (comboBoxExchange.Text)
            {
            case "Yobit":
                Yobit.StreamDataGrid(reloadTable, buttonFind, dataGridViewParser, textBoxLink, _strResponseTicker, strResponseTicker);
                break;
            }
        }
Пример #4
0
        private void listBoxPair_SelectedIndexChanged(object sender, EventArgs e)
        {
            //reset settings stream api
            dataGridViewParser.Rows.Clear();
            reloadTable          = false;
            buttonFind.BackColor = Color.Green;
            buttonFind.Text      = "Start";
            textBoxLink.Text     = "";

            switch (comboBoxExchange.Text)
            {
            case "Yobit":
                Yobit.DataGridViewFiller(listBoxPair, labelSelectedPair, dataGridViewParser);
                break;
            }
        }
Пример #5
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            switch (comboBoxExchange.Text)
            {
            case "Yobit":
                client.EndPoint = strResponsePair;
                string strResponse = client.MakeRequest();
                Yobit.ListBoxFiller(jsonDeserialize, strResponse, listBoxPair, textBoxLog);
                break;

            case "Binance":
                client.EndPoint = strResponseBinExchangeInfo;
                strResponse     = client.MakeRequest();
                Binance.ListBoxFiller(jsonDeserialize, strResponse, listBoxPair, textBoxLog);
                break;
            }
        }
Пример #6
0
        private void textBoxSearchPair_TextChanged(object sender, EventArgs e)
        {
            listBoxPair.Items.Clear();

            switch (comboBoxExchange.Text)
            {
            case "Yobit":
                client.EndPoint = strResponsePair;
                string strResponse = client.MakeRequest();
                Yobit.ListBoxFiller(jsonDeserialize, strResponse, listBoxPair, textBoxLog, textBoxSearchPair);
                break;

            case "Binance":
                client.EndPoint = strResponseBinExchangeInfo;
                strResponse     = client.MakeRequest();
                Binance.ListBoxFiller(jsonDeserialize, strResponse, listBoxPair, textBoxLog, textBoxSearchPair.Text);
                break;
            }
        }