B2024-058-RevisionDate-field-Print-dialog
This commit is contained in:
parent
4bf42be80a
commit
0eadd3fe33
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user