Supporting logic to handle the use of the backslash character
Supporting logic to handle the use of the backslash character, and question marks Supporting logic to handle the use of the backslash character, dashes, and symbols Supporting logic to handle the use of the backslash character and dashes
This commit is contained in:
@@ -119,7 +119,7 @@ namespace VEPROMS
|
||||
}
|
||||
else if (MyProcedure != null)
|
||||
{
|
||||
txtExport.Text = string.Format(@"{0}\{1}.pxml", PEIPath, MyProcedure.DisplayNumber.Replace("/", "_"));
|
||||
txtExport.Text = string.Format(@"{0}\{1}.pxml", PEIPath, MyProcedure.DisplayNumber.Replace("/", "_").Replace("\\","_"));
|
||||
}
|
||||
}
|
||||
private void txtExport_TextChanged(object sender, EventArgs e)
|
||||
@@ -279,7 +279,7 @@ namespace VEPROMS
|
||||
// procedure numbers that contain a hyphen may have the hyphen represented as the unicode character
|
||||
// '\u8209?' or the '-' character. If proc number is same except for hyphen representation, they
|
||||
// should be considered the same procedure (fix for B2016-084)
|
||||
string hyphenNum = pi.MyContent.Number == null ? "" : pi.MyContent.Number.Replace(@"\u8209?", "-").Replace("\u2011", "-");
|
||||
string hyphenNum = pi.MyContent.Number == null ? "" : pi.MyContent.Number.Replace(@"\u8209?", "-").Replace("\u2011", "-").Replace("\u9586?","_").Replace("\u2572", @"\");
|
||||
string hyphenImpNum = xd.SelectSingleNode("procedure/content/@number").InnerText;
|
||||
// bug fix C2015-044 - jsj
|
||||
// - the cancel button would ignor the user's wishes and proceed with the import (overwriting the existing procedure)
|
||||
@@ -287,7 +287,7 @@ namespace VEPROMS
|
||||
// - our standard unicode dash (\u8209?) before conparing the existing and imported
|
||||
// - also found the Overrite and make a copy of messages looked too similar - fixed that as well.
|
||||
//hyphenImpNum = hyphenImpNum == null ? "" : hyphenImpNum.Replace("\u8030?", "-"); -did not find any reason to have this \u8030? - note retested sourcesafe doc for B2016-084 without this logic and it was fine
|
||||
hyphenImpNum = hyphenImpNum == null ? "" : hyphenImpNum.Replace(@"\u8209?", "-").Replace("\u2011", "-");
|
||||
hyphenImpNum = hyphenImpNum == null ? "" : hyphenImpNum.Replace(@"\u8209?", "-").Replace("\u2011", "-").Replace(@"\u9586?", @"\").Replace("\u2572", @"\");
|
||||
|
||||
if (hyphenNum == hyphenImpNum)
|
||||
{
|
||||
|
@@ -2183,7 +2183,7 @@ namespace VEPROMS
|
||||
{
|
||||
MostRecentItem mri = _MyMRIList[i];
|
||||
ButtonItem btnItem = new ButtonItem();
|
||||
string menuTitle = mri.MenuTitle.Replace("\u2011", "-");
|
||||
string menuTitle = mri.MenuTitle.Replace("\u2011", "-").Replace("\u2572", @"\");
|
||||
if (i < 9)
|
||||
btnItem.Text = string.Format("<b>&{0}.</b> {1}", i + 1, menuTitle);
|
||||
else
|
||||
|
Reference in New Issue
Block a user