This commit is contained in:
parent
882c782bd1
commit
e96d73f919
@ -840,15 +840,29 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
public void AddChild(E_FromType fromType, int type)
|
public void AddChild(E_FromType fromType, int type)
|
||||||
{
|
{
|
||||||
AddChild("", fromType, type);
|
AddChild("", fromType, type, null);
|
||||||
}
|
}
|
||||||
public void AddChild(string text, E_FromType fromType, int type)
|
public void AddChild(E_FromType fromType, int type, VlnFlexGrid vfGrid)
|
||||||
|
{
|
||||||
|
AddChild("", fromType, type, vfGrid);
|
||||||
|
}
|
||||||
|
public void AddChild(string text, E_FromType fromType, int type, VlnFlexGrid vfGrid)
|
||||||
{
|
{
|
||||||
if (_MyItemInfo.IsHigh || _MyItemInfo.IsSection)
|
if (_MyItemInfo.IsHigh || _MyItemInfo.IsSection)
|
||||||
CanExpand = true;
|
CanExpand = true;
|
||||||
this.Expanded = true;
|
this.Expanded = true;
|
||||||
_WatchThis = 1;
|
_WatchThis = 1;
|
||||||
ItemInfo newItemInfo = MyItemInfo.InsertChild(fromType, type, text);
|
ItemInfo newItemInfo = MyItemInfo.InsertChild(fromType, type, text);
|
||||||
|
if (vfGrid != null)
|
||||||
|
{
|
||||||
|
string xml = vfGrid.GetXMLData();
|
||||||
|
using (Item itm = newItemInfo.Get())
|
||||||
|
{
|
||||||
|
itm.MyContent.MyGrid.Data = xml;
|
||||||
|
itm.Save();
|
||||||
|
// newItemInfo.MyContent.MyGrid.ResetContent(itm.MyContent.MyGrid); // Do I need this?
|
||||||
|
}
|
||||||
|
}
|
||||||
// TODO: We need to determine where this will go in the stack of children
|
// TODO: We need to determine where this will go in the stack of children
|
||||||
EditItem nextItem = null;
|
EditItem nextItem = null;
|
||||||
if (newItemInfo.NextItem != null)
|
if (newItemInfo.NextItem != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user