public int GetLevel() { ClientNodeControl node = this.TagObject as ClientNodeControl; if (node == null) { return(-1); } return(node.GetGroupID()); }
public void MoveSelected(int x, int y, int keyPosX, int keyPosY) { foreach (Control c in this.Controls) { ISelectable s = c as ISelectable; if (s != null && s.IsSelected()) { ClientNodeControl cn = c as ClientNodeControl; if (cn != null) { cn.MoveControl(x, y, keyPosX, keyPosY); } } } }
public int GetCPLevel(IControlPoint cp) { ClientNodeControl node = cp.TagObject as ClientNodeControl; return(node.GetGroupID()); }