Exemplo n.º 1
0
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     if (textBox1.Text.Length != 4)
     {
         return;
     }
     if (int.TryParse(textBox1.Text, out int code))
     {
         dataGridView1.DataSource = YahooFInanceConToViewData.TradeIndexsWhereCode(code);
     }
     else
     {
         MessageBox.Show("数字を入力してください");
     }
 }
Exemplo n.º 2
0
 private void dateTimePicker2_CloseUp(object sender, EventArgs e)
 {
     dataGridView1.DataSource = YahooFInanceConToViewData.TradeIndexsWhereDatetime(dateTimePicker2.Value);
 }