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