C2025-047-AnnotationsTypeSelectChanges

This commit is contained in:
2025-08-01 07:34:33 -04:00
parent a7c7744ff3
commit 6e20774edf

View File

@@ -156,9 +156,12 @@ namespace VEPROMS
{ {
lstSelected.Items.Add(new AnnotataionItem(lstSelectedRow["Name"].ToString(), (int)lstSelectedRow["TypeID"])); lstSelected.Items.Add(new AnnotataionItem(lstSelectedRow["Name"].ToString(), (int)lstSelectedRow["TypeID"]));
} }
btnUpdate.Enabled = false;
} }
private void btnCancel_Click_1(object sender, EventArgs e) private void btnCancel_Click_1(object sender, EventArgs e)
{
if (btnUpdate.Enabled == true)
{ {
string message = "Changes have not yet been saved. Do you want to save the changes prior to closing?"; string message = "Changes have not yet been saved. Do you want to save the changes prior to closing?";
string title = "Save Annotation Selections"; string title = "Save Annotation Selections";
@@ -174,6 +177,11 @@ namespace VEPROMS
this.Close(); this.Close();
} }
} }
else
{
this.Close();
}
}
private DataTable coverToTable() private DataTable coverToTable()
{ {