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; } }
private void timerReloadParse_Tick(object sender, EventArgs e) { switch (comboBoxExchange.Text) { case "Yobit": Yobit.StreamDataGrid(reloadTable, dataGridViewParser, textBoxLog, textBoxLink, client, jsonDeserialize); break; } }
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; } }
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; } }
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; } }
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; } }