From 6822406b9eb55c5b5a78669981f8a06ce47a31ed Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 10 May 2016 17:58:00 +0000 Subject: [PATCH] Added an indicator to identify Steps, Sections or Procedures that have Enhanced Links. --- PROMS/Volian.Controls.Library/EditItem.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PROMS/Volian.Controls.Library/EditItem.cs b/PROMS/Volian.Controls.Library/EditItem.cs index fc771cce..b70abab6 100644 --- a/PROMS/Volian.Controls.Library/EditItem.cs +++ b/PROMS/Volian.Controls.Library/EditItem.cs @@ -2917,6 +2917,14 @@ namespace Volian.Controls.Library // adjust x location of label by 7, to position correctly. //g.DrawString(lblTab.Text, MyItemInfo.MyTab.MyFont.WindowsFont, Brushes.Blue, new RectangleF(new PointF(Convert.ToSingle(lblTab.Location.X-7), Convert.ToSingle(lblTab.Location.Y)), MyStepPanel.MyStepPanelSettings.NumberSize), StringFormat.GenericDefault); //g.DrawLine(Pens.DarkGreen, lblTab.Location.X-7, 0, lblTab.Location.X-7, this.Height); + // Show a small E to indicate Enhanced Steps + if (MyItemInfo.GetMyEnhancedDocuments().Count > 0) + { + g.DrawLine(Pens.DarkGreen, 18, 1, 18, 6); + g.DrawLine(Pens.DarkGreen, 18, 1, 21, 1); + g.DrawLine(Pens.DarkGreen, 18, 3, 21, 3); + g.DrawLine(Pens.DarkGreen, 18, 6, 21, 6); + } //g.DrawLine(Pens.DarkGreen, MyStepRTB.Location.X - 7, 0, MyStepRTB.Location.X - 7, this.Height); //g.DrawString(TabText, MyItemInfo.MyTab.MyFont.WindowsFont, Brushes.Black, new RectangleF(new PointF(Convert.ToSingle(TabLocation.X), Convert.ToSingle(TabLocation.Y)), MyStepPanel.MyStepPanelSettings.NumberSize), StringFormat.GenericDefault); Font myWFont = (MyItemInfo.MyTab != null) ? MyItemInfo.MyTab.MyFont.WindowsFont : MyItemInfo.FormatStepData.Font.WindowsFont;