RO Ids need to be lower case when sent to RO Editor

This commit is contained in:
John Jenko 2009-12-18 14:30:17 +00:00
parent c931644b3f
commit b3c742d586

View File

@ -449,6 +449,7 @@ namespace Volian.Controls.Library
string valtxt = ConvertSymbolsAndStuff(selectedChld.value); string valtxt = ConvertSymbolsAndStuff(selectedChld.value);
_MyRTB.InsertRO(valtxt, linktxt); _MyRTB.InsertRO(valtxt, linktxt);
_MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length + linktxt.Length, 0); _MyRTB.Select(_MyRTB.SelectionStart + valtxt.Length + linktxt.Length, 0);
_MyRTB.SaveText();
_MyRTB.Focus(); _MyRTB.Focus();
} }
_MyRTB.inRoAdd = false; _MyRTB.inRoAdd = false;
@ -864,11 +865,9 @@ namespace Volian.Controls.Library
private void lbROId_DoubleClick(object sender, EventArgs e) private void lbROId_DoubleClick(object sender, EventArgs e)
{ {
// TODO: This is hard-coded to particular folders
//System.Diagnostics.Process.Start(@"C:\VE-PROMS.NET\BIN\RoEditor.EXE",@"c:\Plant\hlp\vehlp\ro " + CurROLink.ROID);
string roapp = Environment.GetEnvironmentVariable("roapp"); string roapp = Environment.GetEnvironmentVariable("roapp");
string roloc = "\"" + _MyROFST.MyRODb.FolderPath + "\""; string args = "\"" + _MyROFST.MyRODb.FolderPath + "\" " + CurROLink.ROID.ToLower();
System.Diagnostics.Process.Start(roapp, roloc + " " + CurROLink.ROID); System.Diagnostics.Process.Start(roapp, args);
} }
#endregion #endregion