C2024-016-Write-Info-to-Results-Window-Delete-Annotations
This commit is contained in:
parent
24fbb69e25
commit
10ecad47b2
@ -99,7 +99,7 @@ namespace VEPROMS
|
|||||||
private AnnotationTypeInfoList myAnnotationTypeInfoList = null;
|
private AnnotationTypeInfoList myAnnotationTypeInfoList = null;
|
||||||
private LocalAnnotationTypeInfoList myLocalAnnotationTypeInfoList = null;
|
private LocalAnnotationTypeInfoList myLocalAnnotationTypeInfoList = null;
|
||||||
|
|
||||||
// Process used to cleanup annotations "(Proceed?" button)
|
// Process used to cleanup annotations "(Proceed?" button)
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void button1_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
foreach (var p in pil2)
|
foreach (var p in pil2)
|
||||||
@ -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,14 +119,15 @@ 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)
|
||||||
{
|
{
|
||||||
btnClean.Enabled = false;
|
btnClean.Enabled = false;
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user