public BackgroundParam(int paramIdx) { m_paramIdx = paramIdx; m_fontColor = Color.White; m_fontShadow = OnOffType.On; m_imageFilePath = null; }
private static void Write(TextWriter css, string p, string p2, OnOffType propertyValue) { if (propertyValue != null && (propertyValue.Val == null || propertyValue.Val.HasValue && propertyValue.Val.Value)) { Write(css, p, p2); } }
private static FontStyle OnOffTypeToStyle(this OnOffType onOff, FontStyle onValue, FontStyle nullValue) { if (onOff == null) { return(nullValue); } return((onOff.Val?.Value ?? true) ? onValue : FontStyle.Regular); }
public static bool IsOn(this OnOffType onOffType, bool ifOnOffTypeNull = false, bool ifOnOffValueNull = false) { return(onOffType?.Val.IsOn(ifOnOffValueNull) ?? ifOnOffTypeNull); }
public CaTypeOnOff() { m_oot = OnOffType.None; }
private static void Write(TextWriter css, string p, string p2, OnOffType propertyValue) { if (propertyValue != null && (propertyValue.Val == null || propertyValue.Val.HasValue && propertyValue.Val.Value)) Write(css, p, p2); }