- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
private void SetBorderColor()
{
if (AuthInfo.BorderColor)
{
LinearGradientBrush lcBrush = new LinearGradientBrush();
lcBrush.StartPoint = new Point(0.5, 0);
lcBrush.EndPoint = new Point(0.5, 1);
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 249, 249, 249) });
lcBrush.GradientStops.Add(new GradientStop() {Color = Color.FromArgb(100,75,139,180), Offset = 0.331});
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 75, 139, 180), Offset = 0.853 });
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 249, 249, 249), Offset = 1 });
this.rectBackGround.Fill = lcBrush;
}
else
{
LinearGradientBrush lcBrush = new LinearGradientBrush();
lcBrush.StartPoint = new Point(0.5, 0);
lcBrush.EndPoint = new Point(0.5, 1);
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 249, 249, 249) });
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 206, 109, 109), Offset = 0.331 });
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 206, 109, 109), Offset = 0.853 });
lcBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(100, 249, 249, 249), Offset = 1 });
this.rectBackGround.Fill = lcBrush;
}
}