Compare commits

..

1 Commits

3 changed files with 16 additions and 27 deletions

Binary file not shown.

View File

@@ -1206,9 +1206,6 @@ namespace VEPROMS
private bool validateDate(TextBox txtDate) private bool validateDate(TextBox txtDate)
{ {
DateTime dDate; DateTime dDate;
if (!(txtDate.Text == ""))
{
if (DateTime.TryParse(txtDate.Text, out dDate)) if (DateTime.TryParse(txtDate.Text, out dDate))
{ {
return true; return true;
@@ -1222,11 +1219,6 @@ namespace VEPROMS
return false; return false;
} }
} }
return true;
}
private void txbRevDate_Enter(object sender, EventArgs e) private void txbRevDate_Enter(object sender, EventArgs e)
{ {

View File

@@ -673,8 +673,6 @@ namespace Volian.Controls.Library
else else
{ {
using (Annotation annotation = CurrentAnnotation.Get()) using (Annotation annotation = CurrentAnnotation.Get())
{
if (annotation != null) // B2024-061 check for null reference
{ {
annotation.RtfText = rtxbComment.Rtf; annotation.RtfText = rtxbComment.Rtf;
annotation.SearchText = rtxbComment.Text; annotation.SearchText = rtxbComment.Text;
@@ -685,7 +683,6 @@ namespace Volian.Controls.Library
} }
} }
} }
}
AnnotationDirty = false; AnnotationDirty = false;
UpdateAnnotationGrid(); UpdateAnnotationGrid();
AnnotationTypeInfoList.Reset(); // B2018-135: refresh annotation type list to update when annotations are used. AnnotationTypeInfoList.Reset(); // B2018-135: refresh annotation type list to update when annotations are used.