private StyleSet(StyleSet styleSet) { FontColor = styleSet.FontColor; FontName = styleSet.FontName; FontSize = styleSet.FontSize; WidgetStyle = styleSet.WidgetStyle; }
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; }
public virtual void ApplyStyles(StyleSet styleSet) { throw new NotImplementedException("This method must be overriden and implemented in the derived class."); }
public abstract void OverrideStyle(StyleSet styleSet);
public void AddStyleSet(string questionName, StyleSet styleSet) { _questionStyles.Add(questionName, styleSet); }