public void removeControl(xBaseControl c) { if (c != null) { mContainer.Controls.Remove(c.getControl()); } }
public void setPanels(xBaseControl panel1, xBaseControl panel2) { mPanel1 = panel1; mPanel2 = panel2; SplitContainer splitter = (SplitContainer)getControl(); splitter.Panel1.Controls.Add(mPanel1.getControl()); splitter.Panel2.Controls.Add(mPanel2.getControl()); adjustPanelsSize(); }
override public void dispose() { int cnt = getItemCount(); for (int i = 0; i < cnt; i++) { Control c = mContainer.Controls[i]; if (c.Tag is xBaseControl) { xBaseControl xc = (xBaseControl)c.Tag; xc.dispose(); } } }
public override void invalidate() { base.invalidate(); int cnt = getItemCount(); for (int i = 0; i < cnt; i++) { Control c = mContainer.Controls[i]; if (c.Tag is xBaseControl) { xBaseControl xc = (xBaseControl)c.Tag; xc.invalidate(); } } }
public override void invalidate() { base.invalidate(); utils.Utils.trace("refresh xScrollView"); for (int i = 0; i < mPanel.Controls.Count; i++) { Control c = mPanel.Controls[i]; if (c.Tag is xBaseControl) { xBaseControl xc = (xBaseControl)c.Tag; xc.invalidate(); } } }
public void setxBaseControl(xBaseControl c) { mBaseControl = c; }
public void addControl(xBaseControl c) { TabPage page = (TabPage)getControl(); page.Controls.Add(c.getControl()); }
public bool contains(xBaseControl c) { Control cc = c.getControl(); return(mContainer.Controls.Contains(cc)); }
public void addControl(xBaseControl c) { mContainer.Controls.Add(c.getControl()); }
public void addControl(xBaseControl c) { mPanel.Controls.Add(c.getControl()); }
public virtual void setSize(xBaseControl c) { setSize(c.getW(), c.getH()); }