コード例 #1
0
ファイル: BookingWindow.cs プロジェクト: emeliehareland/Golf
        private void busy_button_Click(object sender, EventArgs e)
        {
            DateTime datumtid = new DateTime(
                monthCalendar.SelectionStart.Year,
                monthCalendar.SelectionStart.Month,
                monthCalendar.SelectionStart.Day,
                int.Parse(dataGridView["tid", dataGridView.CurrentRow.Index].Value.ToString().Substring(0, 2)),
                int.Parse(dataGridView["tid", dataGridView.CurrentRow.Index].Value.ToString().Substring(3, 2)),
                0);

            BusyForm bf = new BusyForm(datumtid);
            bf.ShowDialog();
            UpdateTable();
        }
コード例 #2
0
ファイル: BookingWindow.cs プロジェクト: emeliehareland/Golf
        private void busy_button_Click(object sender, EventArgs e)
        {
            DateTime datumtid = new DateTime(
                monthCalendar.SelectionStart.Year,
                monthCalendar.SelectionStart.Month,
                monthCalendar.SelectionStart.Day,
                int.Parse(dataGridView["tid", dataGridView.CurrentRow.Index].Value.ToString().Substring(0, 2)),
                int.Parse(dataGridView["tid", dataGridView.CurrentRow.Index].Value.ToString().Substring(3, 2)),
                0);

            BusyForm bf = new BusyForm(datumtid);

            bf.ShowDialog();
            UpdateTable();
        }