public InfoGraphicObject AddGraphicObject(string caption, bool isChild) { InfoGraphicObject item = new InfoGraphicObject() { Caption = caption, IsChild = isChild, Id = (byte)(GraphicObject.Count + 1) }; GraphicObject.Add(item); return(item); }
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); }