Last change
on this file since 1226 was 1049, checked in by Sam Habiel, 14 years ago |
Oops. Forgot to add DMassSlotDelete form, newly created.
|
File size:
951 bytes
|
Rev | Line | |
---|
[1049] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Data;
|
---|
| 5 | using System.Drawing;
|
---|
| 6 | using System.Linq;
|
---|
| 7 | using System.Text;
|
---|
| 8 | using System.Windows.Forms;
|
---|
| 9 |
|
---|
| 10 | namespace IndianHealthService.ClinicalScheduling
|
---|
| 11 | {
|
---|
| 12 | public partial class DMassSlotDelete : Form
|
---|
| 13 | {
|
---|
| 14 | public DMassSlotDelete()
|
---|
| 15 | {
|
---|
| 16 | InitializeComponent();
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public DateTime StartDate { get { return this.dtStart.Value; } }
|
---|
| 20 | public DateTime EndDate { get { return this.dtEnd.Value; } }
|
---|
| 21 |
|
---|
| 22 | private void btnOK_Click(object sender, EventArgs e)
|
---|
| 23 | {
|
---|
| 24 | if (EndDate < StartDate)
|
---|
| 25 | {
|
---|
| 26 | errorProvider.SetError(dtEnd, "End Date cannot be before Start Date");
|
---|
| 27 | this.DialogResult = DialogResult.None;
|
---|
| 28 | return;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | this.DialogResult = DialogResult.OK;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | }
|
---|
| 35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.