예제 #1
0
        /// <summary>
        /// Creates a CellularTextObject instance with specified name and parent.
        /// </summary>
        /// <param name="name">The name of the CellularTextObject instance.</param>
        /// <param name="parent">The parent ot the CellularTextObject instance.</param>
        /// <returns>The CellularTextObject instance.</returns>
        public static CellularTextObject CreateCellularTextObject(string name, Base parent)
        {
            CellularTextObject cellularText = new CellularTextObject();

            cellularText.Name   = name;
            cellularText.Parent = parent;
            return(cellularText);
        }
        /// <summary>
        /// Creates a CellularTextObject instance with specified name and parent.
        /// </summary>
        /// <param name="name">The name of the CellularTextObject instance.</param>
        /// <param name="parent">The parent ot the CellularTextObject instance.</param>
        /// <returns>The CellularTextObject instance.</returns>
        public static CellularTextObject CreateCellularTextObject(string name, Base parent)
        {
            CellularTextObject cellularText = new CellularTextObject();

            cellularText.Name = name;
            if ((parent as IParent).CanContain(cellularText))
            {
                cellularText.Parent = parent;
            }
            return(cellularText);
        }
예제 #3
0
        private void LoadCellural(XmlNode node, Base parent)
        {
            CellularTextObject cellular = ComponentsFactory.CreateCellularTextObject(node.Name, parent);

            AddLocalizationItemsAttributes(node);
            LoadComponent(node, cellular);
            LoadSize(node, cellular);
            LoadBorder(node, cellular.Border);
            if (GetAttribute(node, "Borders").Equals(string.Empty))
            {
                cellular.Border.Lines = BorderLines.All;
            }
            cellular.FillColor = UnitsConverter.ConvertBackColor(GetAttribute(node, "BackColor"));
            cellular.Text      = GetAttribute(node, "Text");
        }