source: Scheduling/branches/BMX4Support/DMassSlotDelete.cs@ 1376

Last change on this file since 1376 was 1049, checked in by Sam Habiel, 14 years ago

Oops. Forgot to add DMassSlotDelete form, newly created.

File size: 951 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9
10namespace 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.