예제 #1
0
 public BackgroundParam(int paramIdx)
 {
     m_paramIdx      = paramIdx;
     m_fontColor     = Color.White;
     m_fontShadow    = OnOffType.On;
     m_imageFilePath = null;
 }
예제 #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);
     }
 }
예제 #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);
        }
예제 #4
0
 public static bool IsOn(this OnOffType onOffType, bool ifOnOffTypeNull = false, bool ifOnOffValueNull = false)
 {
     return(onOffType?.Val.IsOn(ifOnOffValueNull) ?? ifOnOffTypeNull);
 }
예제 #5
0
		public CaTypeOnOff() {
			m_oot = OnOffType.None;
		}
예제 #6
0
 public CaTypeOnOff()
 {
     m_oot = OnOffType.None;
 }
예제 #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);
 }