Пример #1
0
 public static ColorBlend GetGradient(ColorBlend originalBlend)
 {
     using (GradientDialog gradientDialog = new GradientDialog())
       {
     gradientDialog.SetColorBlend(originalBlend);
     if (gradientDialog.ShowDialog() == DialogResult.OK)
       return gradientDialog.GetColorBlend();
       }
       return (ColorBlend) null;
 }
Пример #2
0
 public static ColorBlend GetGradient(ColorBlend originalBlend)
 {
     using (var form = new GradientDialog())
     {
         form.SetColorBlend(originalBlend);
         if (form.ShowDialog() == DialogResult.OK)
         {
             return form.GetColorBlend();
         }
     }
     return null;
 }
Пример #3
0
 public static ColorBlend GetGradient(ColorBlend originalBlend)
 {
     using (var form = new GradientDialog())
     {
         form.SetColorBlend(originalBlend);
         if (form.ShowDialog() == DialogResult.OK)
         {
             return form.GetColorBlend();
         }
     }
     return null;
 }
Пример #4
0
 public static ColorBlend GetGradient(ColorBlend originalBlend)
 {
     using (GradientDialog gradientDialog = new GradientDialog())
     {
         gradientDialog.SetColorBlend(originalBlend);
         if (gradientDialog.ShowDialog() == DialogResult.OK)
         {
             return(gradientDialog.GetColorBlend());
         }
     }
     return(null);
 }