public void AddGraphicPath(InfoGraphicObject currentObject, params InfoGraphicObject[] graphicObjects) { RemoveAnimationHelpers(); _currentObject = currentObject; GraphicPath.Clear(); GraphicPath.AddRange(graphicObjects); Invalidate(); }
public void ClearObjects() { RemoveAnimationHelpers(); _currentObject = null; GraphicObject.Clear(); GraphicRelation.Clear(); GraphicPath.Clear(); }
public void AddGraphicRelation(InfoGraphicObject key, InfoGraphicObject value) { if (ControlInInitialize() == false) { return; } GraphicRelation.Add(new KeyValuePair <InfoGraphicObject, InfoGraphicObject>(key, value)); }
public InfoGraphicObject AddGraphicObject(string caption, bool isChild) { if (ControlInInitialize() == false) { return(null); } InfoGraphicObject item = new InfoGraphicObject() { Caption = caption, IsChild = isChild, Id = (byte)(GraphicObject.Count + 1) }; GraphicObject.Add(item); return(item); }