Example #1
0
 /// <summary>
 /// 根据设置背景色的函数返回背景色
 /// </summary>
 /// <param name="source">源数据</param>
 /// <returns>背景色</returns>
 public string GetBackGroundColor(object source)
 {
     if (BackGroundFunc == null)
     {
         return "";
     }
     else
     {
         return BackGroundFunc.Invoke(source as T);
     }
 }
Example #2
0
 public System.Drawing.Color GetBackGroundColor(T source)
 {
     if (BackGroundFunc == null)
     {
         return(System.Drawing.Color.Empty);
     }
     else
     {
         return(BackGroundFunc.Invoke(source));
     }
 }