public static GraphicalUiElement ToGraphicalUiElement(this ElementSave elementSave, SystemManagers systemManagers, bool addToManagers) { GraphicalUiElement toReturn = CreateGueForElement(elementSave); elementSave.SetGraphicalUiElement(toReturn, systemManagers); //no layering support yet if (addToManagers) { toReturn.AddToManagers(systemManagers, null); } return(toReturn); }
protected void AddToManagers() { element.AddToManagers(mManagers, null); }