C2019-025_Ability-to-Toggle-Replace-Words
This commit is contained in:
@@ -517,6 +517,57 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
#endregion CheckOff
|
||||
#region ShwRplWds
|
||||
[Serializable]
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public class ShwRplWds
|
||||
{
|
||||
private string _MenuItem;
|
||||
[XmlAttribute("MenuItem")]
|
||||
[Browsable(false)]
|
||||
public string MenuItem
|
||||
{
|
||||
get { return _MenuItem; }
|
||||
set { _MenuItem = value; }
|
||||
}
|
||||
private string _Index;
|
||||
[XmlAttribute("Index")]
|
||||
[Browsable(false)] // Don't show in the property grid
|
||||
public string Index
|
||||
{
|
||||
get { return _Index; }
|
||||
set { _Index = value; }
|
||||
}
|
||||
|
||||
private bool? _Active;
|
||||
[DisplayName("Active ShwRplWds")]
|
||||
[Description("Allow use of this ShwRplWds")]
|
||||
public bool? Active
|
||||
{
|
||||
get { return _Active; }
|
||||
set { _Active = value; }
|
||||
}
|
||||
private bool? _OrigActive;
|
||||
[XmlIgnore]
|
||||
[Browsable(false)]
|
||||
public bool? OrigActive
|
||||
{
|
||||
get { return _OrigActive; }
|
||||
set { _OrigActive = value; }
|
||||
}
|
||||
public ShwRplWds()
|
||||
{
|
||||
}
|
||||
public string ConvertToString()
|
||||
{
|
||||
return GenericSerializer<ShwRplWds>.StringSerialize(this);
|
||||
}
|
||||
public override string ToString()
|
||||
{
|
||||
return MenuItem;
|
||||
}
|
||||
}
|
||||
#endregion ShwRplWds
|
||||
#region StepData (list)
|
||||
[Serializable]
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
|
@@ -528,6 +528,24 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Section_OriginalSteps");
|
||||
}
|
||||
}
|
||||
[Browsable(false)]
|
||||
[DisplayName("Section ShowReplaceWords")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Section ShowReplaceWords")]
|
||||
public string Section_ShwRplWords
|
||||
{
|
||||
get
|
||||
{
|
||||
//return _Xp["Section", "ShwRplWords"];
|
||||
string tmp = _Xp["Section", "ShwRplWords"];
|
||||
return tmp == null || tmp == "" ? "Y" : tmp;
|
||||
}
|
||||
set
|
||||
{
|
||||
_Xp["Section", "ShwRplWords"] = value;
|
||||
OnPropertyChanged("Section_ShwRplWords");
|
||||
}
|
||||
}
|
||||
[Category("Section")]
|
||||
//PROPGRID: Hide Section NumPages
|
||||
[Browsable(false)]
|
||||
|
@@ -493,6 +493,34 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Step_DisableInitialLine");
|
||||
}
|
||||
}
|
||||
//C2019-025 Ability to Toggle Replace Words
|
||||
public int Step_ShwRplWdsIndex
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["Step", "ShwRplWdsIndex"];
|
||||
|
||||
if (s == string.Empty) return 0;
|
||||
|
||||
if (s == "0") return 0;
|
||||
|
||||
if (s == "1") return 1;
|
||||
|
||||
if (s == "2") return 2;
|
||||
|
||||
if (s == "3") return 3;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
set
|
||||
{
|
||||
string s = _Xp["Step", ""];
|
||||
if (value.ToString() == s) return;
|
||||
_Xp["Step", "ShwRplWdsIndex"] = value.ToString();
|
||||
OnPropertyChanged("Step_ShwRplWdsIndex");
|
||||
}
|
||||
}
|
||||
#region RO image sizing
|
||||
// if the RO image (figure) is resized, save it in the step config, not in the ROImageConfig. If stored in ROImageConfig
|
||||
// the size is set for ALL uses.
|
||||
|
Reference in New Issue
Block a user