Example #1
0
        private void SetExtent(ScrollExtent extent)
        {
            switch (extent)
            {
            case ScrollExtent.On:
                this.radioButtonScrollOn.Checked = true;
                break;

            case ScrollExtent.OnAndOff:
                this.radioButtonScrollOnOff.Checked = true;
                break;
            }
        }
Example #2
0
        private void SetExtent(ScrollExtent extent)
        {
            switch (extent) {
                case ScrollExtent.On:
                    this.radioButtonScrollOn.Checked = true;
                    break;

                case ScrollExtent.OnAndOff:
                    this.radioButtonScrollOnOff.Checked = true;
                    break;
            }
        }
Example #3
0
 public void LoadFromXml(XmlNode parentNode)
 {
     this.FrameLength = int.Parse(parentNode["Frame"].Attributes["length"].Value);
     XmlNode node = parentNode["Font"];
     this.TextFont = new Font(node.Attributes["name"].Value, 10f);
     this.TextHeight = int.Parse(node.Attributes["height"].Value);
     this.IgnoreFontDescent = bool.Parse(node.Attributes["ignoreDescent"].Value);
     node = parentNode["Position"]["Horz"];
     this.TextHorzPosition = (HorzPosition) Enum.Parse(typeof(HorzPosition), node.Attributes["position"].Value);
     this.TextHorzPositionValue = int.Parse(node.Attributes["value"].Value);
     node = parentNode["Position"]["Vert"];
     this.TextVertPosition = (VertPosition) Enum.Parse(typeof(VertPosition), node.Attributes["position"].Value);
     this.TextVertPositionValue = int.Parse(node.Attributes["value"].Value);
     node = parentNode["Scroll"];
     this.TextScrollDirection = (ScrollDirection) Enum.Parse(typeof(ScrollDirection), node.Attributes["direction"].Value);
     this.TextScrollExtent = (ScrollExtent) Enum.Parse(typeof(ScrollExtent), node.Attributes["extent"].Value);
 }