Added code to handle Table ROs.
Used generic (static) VlnFlexGrid.ROTableUpdate to determine if the table contents are updated. Added Error Handling around the code that shuts down PROMs Added function to ROFSTLookup to retrieve the Accessory Page ID. Corrected code to handle value changes for Table ROs Created generic (static) VlnFlexGrid.ROTableUpdate to determine if the table contents are updated.
This commit is contained in:
@@ -1302,39 +1302,40 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public List<string> roFstInfo_ROTableUpdate(object sender, ROFstInfoROTableUpdateEventArgs args)
|
||||
{
|
||||
string xml = null;
|
||||
string srchtxt = null;
|
||||
using (VlnFlexGrid myGrid = new VlnFlexGrid())
|
||||
{
|
||||
using (StringReader sr = new StringReader(args.OldGridXml))
|
||||
{
|
||||
myGrid.ReadXml(sr);
|
||||
myGrid.KeyActionTab = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
|
||||
sr.Close();
|
||||
}
|
||||
string roid = myGrid.ROID;
|
||||
int rodbid = myGrid.RODbId;
|
||||
Font GridFont = myGrid.Font;
|
||||
myGrid.Clear();
|
||||
myGrid.ParseTableFromText(args.ROText, GridLinePattern.Single);
|
||||
myGrid.AutoSizeCols();
|
||||
myGrid.AutoSizeRows();
|
||||
myGrid.MakeRTFcells();
|
||||
myGrid.RODbId = rodbid;
|
||||
myGrid.ROID = roid;
|
||||
myGrid.IsRoTable = true;
|
||||
using (StringWriter sw = new StringWriter())
|
||||
{
|
||||
myGrid.WriteXml(sw);
|
||||
xml = sw.GetStringBuilder().ToString();
|
||||
sw.Close();
|
||||
}
|
||||
srchtxt = myGrid.GetSearchableText();
|
||||
}
|
||||
List<string> retlist = new List<string>();
|
||||
retlist.Add(srchtxt);
|
||||
retlist.Add(xml);
|
||||
return retlist;
|
||||
return VlnFlexGrid.ROTableUpdate(sender, args);
|
||||
//string xml = null;
|
||||
//string srchtxt = null;
|
||||
//using (VlnFlexGrid myGrid = new VlnFlexGrid())
|
||||
//{
|
||||
// using (StringReader sr = new StringReader(args.OldGridXml))
|
||||
// {
|
||||
// myGrid.ReadXml(sr);
|
||||
// myGrid.KeyActionTab = C1.Win.C1FlexGrid.KeyActionEnum.MoveAcross;
|
||||
// sr.Close();
|
||||
// }
|
||||
// string roid = myGrid.ROID;
|
||||
// int rodbid = myGrid.RODbId;
|
||||
// Font GridFont = myGrid.Font;
|
||||
// myGrid.Clear();
|
||||
// myGrid.ParseTableFromText(args.ROText, GridLinePattern.Single);
|
||||
// myGrid.AutoSizeCols();
|
||||
// myGrid.AutoSizeRows();
|
||||
// myGrid.MakeRTFcells();
|
||||
// myGrid.RODbId = rodbid;
|
||||
// myGrid.ROID = roid;
|
||||
// myGrid.IsRoTable = true;
|
||||
// using (StringWriter sw = new StringWriter())
|
||||
// {
|
||||
// myGrid.WriteXml(sw);
|
||||
// xml = sw.GetStringBuilder().ToString();
|
||||
// sw.Close();
|
||||
// }
|
||||
// srchtxt = myGrid.GetSearchableText();
|
||||
//}
|
||||
//List<string> retlist = new List<string>();
|
||||
//retlist.Add(srchtxt);
|
||||
//retlist.Add(xml);
|
||||
//return retlist;
|
||||
}
|
||||
|
||||
private void RunROEditor(VETreeNode tn)
|
||||
|
Reference in New Issue
Block a user