public void Reload() { parent = new UICollection(); parent.elementsInCollection = new List <BaseUIElement>(); foreach (var item in listUIElementsSaves) { if (item.GetType() == typeof(UIScreenSaveLayout)) { UIScreen uis = new UIScreen(); uis.Reload(parent, item); parent.elementsInCollection.Add(uis); } else if (item.GetType() == typeof(UIScreenSliderSaveLayout)) { UIScreenSlider uisl = new UIScreenSlider(); uisl.Reload(parent, item); parent.elementsInCollection.Add(uisl); } else if (item.GetType() == typeof(UINumericInputLayout)) { UINumericInput uinum = new UINumericInput(); uinum.Reload(parent, item); parent.elementsInCollection.Add(uinum); } else if (item.GetType() == typeof(UIButtonSaveLayout)) { GButton uib = new GButton(); uib.Reload(parent, item); parent.elementsInCollection.Add(uib); } else if (item.GetType() == typeof(UITextElementLayout)) { UITextElement uite = new UITextElement(); uite.Reload(parent, item); parent.elementsInCollection.Add(uite); } } parent.startMainElement = parent.elementsInCollection.FindAll(e => e.GetType() == typeof(UIScreen)).Cast <UIScreen>().ToList().Find(uis => uis.ElementID == startElementID); }
internal override BaseUIElement Clone(BaseUIElement bue, BaseUIElement parent, UICollection parentCollection) { UINumericInput temp = (UINumericInput)this.MemberwiseClone(); return(base.Clone(temp, parent, parentCollection)); }