C2026-043-Tech-Debt_v1 - Stash 1
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
@@ -137,7 +133,6 @@ namespace Volian.Controls.Library
|
||||
Color c1 = Color.FromArgb(_Trans1, _Color1);
|
||||
Color c2 = Color.FromArgb(_Trans2, _Color2);
|
||||
Brush b = new System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, c1, c2, _GradientAngle);
|
||||
//Brush b2 = new System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, c2, c2, _GradientAngle);
|
||||
Pen p = new Pen(ForeColor);
|
||||
Brush b2 = p.Brush;
|
||||
float smallest = this.Width;
|
||||
@@ -152,11 +147,6 @@ namespace Volian.Controls.Library
|
||||
switch (_MyExpanderStyle)
|
||||
{
|
||||
case ExpanderStyle.Round:
|
||||
//e.Graphics.FillEllipse(Brushes.Gray, 0F, 0F, diameter, diameter);
|
||||
//e.Graphics.DrawRectangle(p, new Rectangle(0, 0, leg * 2 + penWidth * 3, leg * 2 + penWidth * 3));
|
||||
// Draw a white cross-hair
|
||||
//e.Graphics.FillRectangle(Brushes.White, 2 * weight , radius - weight, diameter - 4 * weight, weight * 2);
|
||||
//e.Graphics.FillRectangle(Brushes.White, radius - weight, 2 * weight, weight * 2, diameter - 4 * weight);
|
||||
if(!Attachment) e.Graphics.FillEllipse(b, 0F, 0F, diameter, diameter);
|
||||
DrawInterior(e, b, b2, weight, radius, diameter);
|
||||
e.Graphics.DrawEllipse(p, 0, 0, diameter, diameter);
|
||||
@@ -165,21 +155,13 @@ namespace Volian.Controls.Library
|
||||
b2.Dispose();
|
||||
break;
|
||||
case ExpanderStyle.Square:
|
||||
//c1 = Color.FromArgb(_Trans1, _Color1);
|
||||
//c2 = Color.FromArgb(_Trans2, _Color2);
|
||||
//b = new System.Drawing.Drawing2D.LinearGradientBrush(ClientRectangle, c1, c2, _GradientAngle);
|
||||
int leg = ((ClientRectangle.Width - 3 * penWidth) / 2) - 1;
|
||||
if (!Attachment) e.Graphics.FillRectangle(b, new Rectangle(0, 0, leg * 2 + penWidth * 3, leg * 2 + penWidth * 3));
|
||||
int center = leg + penWidth;
|
||||
int limit = 2 * (penWidth + leg);
|
||||
p = new Pen(_BorderColor, _PenWidth);
|
||||
e.Graphics.DrawRectangle(p, new Rectangle(0, 0, leg * 2 + penWidth * 3, leg * 2 + penWidth * 3));
|
||||
//b = new SolidBrush(this.ForeColor);
|
||||
DrawInterior(e, b, b2, weight, radius, diameter);
|
||||
//e.Graphics.FillRectangle(b, new Rectangle(penWidth, center, leg * 2 + penWidth, penWidth));
|
||||
//if (!_Expanded) e.Graphics.FillRectangle(b, new Rectangle(center, penWidth, penWidth, leg * 2 + penWidth));
|
||||
////pe.Graphics.DrawLine(p, new Point(penWidth, center), new Point(limit, center));
|
||||
////if (!Expanded) pe.Graphics.DrawLine(p, new Point(center, penWidth), new Point(center, limit));
|
||||
p.Dispose();
|
||||
b.Dispose();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user