12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- using System;
- using System.Drawing;
- using System.Drawing.Drawing2D;
- using System.ComponentModel;
- using System.Drawing.Design;
- using System.Collections;
- namespace GraEditor.BaseDef
- {
-
-
-
-
- public class BrushExt
- {
-
- static BrushExt()
- {
- solidBrush = new SolidBrush(Color.Transparent);
- }
- public BrushExt()
- {
- this.Color = Color.DarkBlue;
- }
- public BrushExt(Color color)
- : this()
- {
- this.Color = color;
- }
- private static SolidBrush solidBrush;
- public Brush Brush
- {
- get
- {
- solidBrush.Color = this.Color;
- return solidBrush;
- }
- set
- {
- SolidBrush b = value as SolidBrush;
- if(b == null)
- return;
- this.Color = b.Color;
- }
- }
-
- protected Color color;
- public Color Color
- {
- get { return color; }
- set
- {
-
-
- this.color = value;
-
-
- }
- }
- }
- }
|