Exemplo n.º 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;
            }
        }
Exemplo n.º 2
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;
            }
        }
Exemplo n.º 3
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;
            }
        }