Пример #1
0
 private void Initialize_Gradient()
 {
     if (!ForeColor1.Equals(ForeColor2, StringComparison.InvariantCultureIgnoreCase))
     {
         MyGradient.Initialize(ForeColor1, ForeColor2);
     }
 }
Пример #2
0
 private string GetColor()
 {
     if (ForeColor1.Equals(ForeColor2, StringComparison.InvariantCultureIgnoreCase))
     {
         return(ForeColor1);
     }
     else
     {
         return(MyGradient.Get_Color(ActualValue));
     }
 }