C2024-016-Write-Info-to-Results-Window-Delete-Annotations

This commit is contained in:
Paul Larsen 2024-07-24 17:25:34 -04:00
parent 24fbb69e25
commit 10ecad47b2
2 changed files with 12 additions and 4 deletions

View File

@ -107,7 +107,7 @@ namespace VEPROMS
if (p.IsProcedure) if (p.IsProcedure)
{ {
TextBox frm2 = mainForm.GettxtProcess(); TextBox frm2 = mainForm.GettxtProcess();
frm2.AppendText(p.DisplayNumber + ' ' + p.DisplayText); frm2.AppendText(p.DisplayNumber + ' ' + p.DisplayText + Environment.NewLine);
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key); AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
Annotation.DeleteAnnotationProcByType(AnnotationTyp, p.ItemID.ToString()); Annotation.DeleteAnnotationProcByType(AnnotationTyp, p.ItemID.ToString());
lblCountNumber.Text = "0"; lblCountNumber.Text = "0";
@ -119,13 +119,14 @@ namespace VEPROMS
if (d.IsDocVersion) if (d.IsDocVersion)
{ {
TextBox frm2 = mainForm.GettxtProcess(); TextBox frm2 = mainForm.GettxtProcess();
frm2.AppendText(d.ActiveParent.ToString()); frm2.AppendText(d.ActiveParent.ToString() + Environment.NewLine);
AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key); AnnotationTyp = System.Convert.ToInt32(((KeyValuePair<string, string>)lbAnnotationTypes.SelectedItem).Key);
Annotation.DeleteAnnotationDocvByType(AnnotationTyp, d.VersionID.ToString()); Annotation.DeleteAnnotationDocvByType(AnnotationTyp, d.VersionID.ToString());
lblCountNumber.Text = "0"; lblCountNumber.Text = "0";
} }
} }
} }
// Retrieve number of annotations that will be deleted. // Retrieve number of annotations that will be deleted.
private void lbAnnotationTypes_SelectedIndexChanged(object sender, EventArgs e) private void lbAnnotationTypes_SelectedIndexChanged(object sender, EventArgs e)
{ {

View File

@ -61,6 +61,13 @@ namespace VEPROMS
{ {
return txtProcess; return txtProcess;
} }
// Make txtResults text box available to frmAnnotationsClean form.
internal TextBox GettxtResults()
{
return txtResults;
}
// NOTE: removed the Refresh ROs and Refresh Transitions and ROs options (now only Transitions can be refreshed) // NOTE: removed the Refresh ROs and Refresh Transitions and ROs options (now only Transitions can be refreshed)
// the Update ROs and Refresh ROs logic was merged together. The Update ROs will functionally do both // the Update ROs and Refresh ROs logic was merged together. The Update ROs will functionally do both
// also annotations will be placed on step elements that have RO changes // also annotations will be placed on step elements that have RO changes