Development #392

Merged
djankowski merged 8 commits from Development into master 2024-08-15 14:55:28 -04:00
8 changed files with 69 additions and 43 deletions
Showing only changes of commit 0eadd3fe33 - Show all commits

View File

@@ -1226,19 +1226,6 @@ namespace VEPROMS
grpDateSelector.Visible = calDateSelector.Visible = true;
//C2021-007 position the calendar to the current RevDate or if no RevDate, position to today's date
DateTime dDate;
//if (DateTime.TryParse(txbDate.Text, out dDate))
//{
// DateTime initSelDate = (txbDate.Text != null && txbDate.Text.Length != 0) ? Convert.ToDateTime(txbDate.Text) : DateTime.Today;
// calDateSelector.DisplayMonth = calDateSelector.SelectedDate = initSelDate;
//}
//else
//{
// string txtDate = txbDate.Text;
// string message = String.Format("Date {0} in wrong format" + System.Environment.NewLine + "Correct the revision date.", txtDate);
// string txtTitle = "Invalid Format";
// MessageBox.Show(message, txtTitle);
// txbRevDate.Focus();
//}
if (!validateDate(txbDate))
{
txbRevDate.Focus();