示例#1
0
        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))
            {
            }
        }
示例#2
0
        private void listBox1_Click(object sender, EventArgs e)
        {
            if (listBox1.SelectedItem == null)
            {
                return;
            }
            string strPlace = listBox1.SelectedItem.ToString();

            listBox2.Items.Clear();
            listBox3.Items.Clear();

            DateTime datetimeTarg = dateTimePicker1.Value;
            string   strDateTarg  = datetimeTarg.ToString("yyyyMMdd");

            if (!cDatabase.getDbDataPlace(strDateTarg, strPlace))
            {
                MessageBox.Show("データがありません。",
                                "GetUmatanOdds",
                                MessageBoxButtons.OK);
            }
        }