Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }