Exemplo n.º 1
0
 public BackgroundParam(int paramIdx)
 {
     m_paramIdx      = paramIdx;
     m_fontColor     = Color.White;
     m_fontShadow    = OnOffType.On;
     m_imageFilePath = null;
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
        private static FontStyle OnOffTypeToStyle(this OnOffType onOff, FontStyle onValue, FontStyle nullValue)
        {
            if (onOff == null)
            {
                return(nullValue);
            }

            return((onOff.Val?.Value ?? true)
                ? onValue
                : FontStyle.Regular);
        }
Exemplo n.º 4
0
 public static bool IsOn(this OnOffType onOffType, bool ifOnOffTypeNull = false, bool ifOnOffValueNull = false)
 {
     return(onOffType?.Val.IsOn(ifOnOffValueNull) ?? ifOnOffTypeNull);
 }
Exemplo n.º 5
0
		public CaTypeOnOff() {
			m_oot = OnOffType.None;
		}
Exemplo n.º 6
0
 public CaTypeOnOff()
 {
     m_oot = OnOffType.None;
 }
Exemplo n.º 7
0
 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);
 }