Ejemplo n.º 1
0
		public virtual Panel Init (string Name = "", Panel ParentPanel = null, bool IsDependant=false)
		{
			if (Name == "") {
				name = this.GetType ().Name.ToString ();
			} else {
				name = Name;
			}
			isDependant = IsDependant;
			panelElement = (PanelElement)new PanelElement ().Init ("", null, "");
			childPanels = new List<Panel> ();
			parentPanel = ParentPanel;
			if (parentPanel != null) {
				AddSelfToParentPanel (parentPanel);
			}
			GetChildren ();
			Autofit ();
			isActive = false;
			return this;
		}
Ejemplo n.º 2
0
		private void AddSelfToParentPanel (Panel tPanel)
		{
			panelElement.parentElement = tPanel.panelElement;
			tPanel.AddPanel (this);
		}
Ejemplo n.º 3
0
		public void AddPanel (Panel child)
		{
			childPanels.Add (child);
		}