Beispiel #1
0
        private void ReadCheckBox(XRCheckBox xtraControl, StiContainer parent)
        {
            #region Read CheckBox
            StiCheckBox check = new StiCheckBox();
            parent.Components.Add(check);

            ReadComp(xtraControl, check);

            ReadBrush(xtraControl, check);
            ReadTextBrush(xtraControl, check);
            ReadBorder(xtraControl, check);
            ReadFont(xtraControl, check);

            check.Width = check.Height;
            #endregion

            #region Read Text
            StiText text = new StiText();
            parent.Components.Add(text);

            ReadComp(xtraControl, text);
            text.Name  += "_Text";
            text.Left  += check.Width;
            text.Width -= check.Width;

            ReadBrush(xtraControl, text);
            ReadTextBrush(xtraControl, text);
            ReadBorder(xtraControl, text);
            ReadFont(xtraControl, text);
            ReadTextAlignment(xtraControl, text);

            text.Text.Value = xtraControl.Text;
            #endregion
        }
Beispiel #2
0
        private void ReadCheckBoxObject(XmlNode node, StiBand band)
        {
            StiCheckBox checkBox = new StiCheckBox();

            band.Components.Add(checkBox);

            ReadComp(node, checkBox);

            checkBox.Checked.Value = "{" + ReadString(node, "DataColumn", "") + "}";
        }