public void selectHistory(clsDbInfo cDbInfo) { // 日付の選択 _form1.dateTimePicker1.Value = DateTime.Parse(cDbInfo.strdate.Insert(4, "/").Insert(7, "/")); // 会場の取得 if (!cDatabase.getDbDataDate(cDbInfo.strdate)) { } // 会場の選択 if (selectListBox1(cDbInfo.nameJyo)) { } // レースの取得 string strPlace = _form1.listBox1.SelectedItem.ToString(); if (!cDatabase.getDbDataPlace(cDbInfo.strdate, strPlace)) { } // レースの選択 if (selectListBox2(cDbInfo.racenum)) { } // 馬名の取得 if (!cDatabase.getDbDataBamei(cDbInfo.strdate, strPlace, cDbInfo.racenum)) { } }
private void dateTimePicker1_ValueChanged(object sender, EventArgs e) { if (isFormLord) { return; } listBox1.Items.Clear(); listBox2.Items.Clear(); listBox3.Items.Clear(); if (oldSelectDate.Month != dateTimePicker1.Value.Month) { oldSelectDate = dateTimePicker1.Value; return; } DateTime datetimeTarg = dateTimePicker1.Value; string strDateTarg = datetimeTarg.ToString("yyyyMMdd"); if (!cDatabase.getDbDataDate(strDateTarg)) { MessageBox.Show("データがありません。", "GetUmatanOdds", MessageBoxButtons.OK); } }