Compare commits
3 Commits
a04def360d
...
C2019-025_
| Author | SHA1 | Date | |
|---|---|---|---|
| b7aa85f4fc | |||
| 90e25f3fcf | |||
| ca61597863 |
@@ -12,6 +12,12 @@ using JR.Utils.GUI.Forms;
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
public enum E_FieldToEdit { StepText, Text, Number, PSI };
|
||||
public enum ReplaceWords
|
||||
{
|
||||
Inherit = 0,
|
||||
Show = 1,
|
||||
DoNotShow = 2
|
||||
}
|
||||
public class DisplayText
|
||||
{
|
||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
@@ -55,22 +61,20 @@ namespace VEPROMS.CSLA.Library
|
||||
if (sc == null) return "N";
|
||||
return sc.Section_ShwRplWords;
|
||||
}
|
||||
|
||||
// C2029-025 Show or hide replace words. Can highlight replace words in editor.
|
||||
// C2019-025 c2025-010 Ability-to-Toggle-Replace-Words
|
||||
private bool ShwRplWdsIndex(ItemInfo _MyItemInfo)
|
||||
{
|
||||
StepConfig sc = _MyItemInfo.MyConfig as StepConfig;
|
||||
int setting = sc.Step_ShwRplWdsIndex;
|
||||
switch (setting)
|
||||
{
|
||||
case 3:
|
||||
case (int)ReplaceWords.DoNotShow:
|
||||
return false;
|
||||
break;
|
||||
case 2:
|
||||
case (int)ReplaceWords.Show:
|
||||
return true;
|
||||
break;
|
||||
case 1:
|
||||
case 0:
|
||||
case (int)ReplaceWords.Inherit:
|
||||
//SectionConfig sc2 = _MyItemInfo.ActiveParent.MyConfig as SectionConfig;
|
||||
SectionConfig sc2 = _MyItemInfo.ActiveSection.MyConfig as SectionConfig;
|
||||
if (sc2 == null || sc2.Section_ShwRplWords == "Y")
|
||||
@@ -87,6 +91,7 @@ namespace VEPROMS.CSLA.Library
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private Item _MyItem;
|
||||
private string EditText
|
||||
{
|
||||
|
||||
@@ -198,7 +198,6 @@ namespace Volian.Controls.Library
|
||||
this.cmbShwRplWds.FormattingEnabled = true;
|
||||
this.cmbShwRplWds.ItemHeight = 17;
|
||||
this.cmbShwRplWds.Items.AddRange(new object[] {
|
||||
"",
|
||||
"Inherit from Section",
|
||||
"Show replace words",
|
||||
"Do not show replace words"});
|
||||
|
||||
Reference in New Issue
Block a user