Code cleanup – B2019-133 – continuation of bug fix for B2018-057 to replace non-breaking hyphen with a dash. This was done for procedure specific information but not for the folder and procedure set specific information logic. Was found during Barakah Alarm format development, but ended up not needing this logic for their current format.
C2019-043 Added UseDashGreaterLessThenForArrowsInROValue flag to convert “->” to the right arrow symbol and “<-“ to the left arrow symbol in RO return values
This commit is contained in:
@@ -71,7 +71,8 @@ namespace VEPROMS
|
||||
tb.Enter += new System.EventHandler(this.FieldStepRTB_Enter);
|
||||
tb.ContextMenuStrip = contextMenuStrip1; // B2017-024 clipboard context menu
|
||||
// see if config has data for this field, i.e. search for the 'name'
|
||||
string val = DoFolder ? folderConfig.GetValue("SI", fld.name) : dvConfig.GetValue("SI", fld.name);
|
||||
// B2019-133 continuation of B2018-057 Replace non-breaking hyphen with hyphen.
|
||||
string val = (DoFolder ? folderConfig.GetValue("SI", fld.name) : dvConfig.GetValue("SI", fld.name)).Replace("\\u8209?", "-");
|
||||
DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}");
|
||||
@@ -146,9 +147,9 @@ namespace VEPROMS
|
||||
{
|
||||
isDirty = true;
|
||||
if (DoFolder)
|
||||
folderConfig.SetValue("SI", fld.name, newval);
|
||||
folderConfig.SetValue("SI", fld.name, newval.Replace("\\u8209?", "-"));// B2019-133 continuation of B2018-057 Replace non-breaking hyphen with hyphen.
|
||||
else
|
||||
dvConfig.SetValue("SI", fld.name, newval);
|
||||
dvConfig.SetValue("SI", fld.name, newval.Replace("\\u8209?", "-"));// B2019-133 continuation of B2018-057 Replace non-breaking hyphen with hyphen.
|
||||
}
|
||||
}
|
||||
else if (fld.type.ToLower() == "logical")
|
||||
|
Reference in New Issue
Block a user