Ejemplo n.º 1
0
 private StyleSet(StyleSet styleSet)
 {
     FontColor   = styleSet.FontColor;
     FontName    = styleSet.FontName;
     FontSize    = styleSet.FontSize;
     WidgetStyle = styleSet.WidgetStyle;
 }
Ejemplo n.º 2
0
 private StyleSet(StyleSet styleSet)
 {
     FontColor = styleSet.FontColor;
     FontName = styleSet.FontName;
     FontSize = styleSet.FontSize;
     WidgetStyle = styleSet.WidgetStyle;
 }
Ejemplo n.º 3
0
        public override void ApplyStyles(StyleSet styleSet)
        {
            Font newFont = new Font(styleSet.FontName, styleSet.FontSize);
            System.Drawing.Color newColor = System.Drawing.Color.FromArgb(styleSet.FontColor.Red, styleSet.FontColor.Green, styleSet.FontColor.Blue);

            QuestionLabel.Font = newFont;
            QuestionLabel.ForeColor = newColor;
            YesCheckBox.Font = newFont;
            YesCheckBox.ForeColor = newColor;
        }
Ejemplo n.º 4
0
 public virtual void ApplyStyles(StyleSet styleSet)
 {
     throw new NotImplementedException("This method must be overriden and implemented in the derived class.");
 }
Ejemplo n.º 5
0
 public abstract void OverrideStyle(StyleSet styleSet);
Ejemplo n.º 6
0
 public void AddStyleSet(string questionName, StyleSet styleSet)
 {
     _questionStyles.Add(questionName, styleSet);
 }