diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-08-27 11:32:44 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-08-27 11:32:44 +0100 |
| commit | f8f3bd0b1eb57c5a289513200b192e1d54d58292 (patch) | |
| tree | c9b79515fb81d90320ef386a522a5830875f6d49 /TimeHACK.Engine/Paintbrush.cs | |
| parent | bffcb720f811623015ed4795032e5c57d1064c8a (diff) | |
| parent | cd6273d7c95098e0e0dd9948c6b5cec1c5f9cd3f (diff) | |
| download | histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.tar.gz histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.tar.bz2 histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.zip | |
Updated my fork!
Diffstat (limited to 'TimeHACK.Engine/Paintbrush.cs')
| -rw-r--r-- | TimeHACK.Engine/Paintbrush.cs | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/TimeHACK.Engine/Paintbrush.cs b/TimeHACK.Engine/Paintbrush.cs deleted file mode 100644 index a8a6b54..0000000 --- a/TimeHACK.Engine/Paintbrush.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace TimeHACK.Engine -{ - public class Paintbrush - { - public static void PaintClassicBorders(object sender, PaintEventArgs e, int borderwidth) - { - ControlPaint.DrawBorder(e.Graphics, ((Control)sender).ClientRectangle, - Color.White, borderwidth, ButtonBorderStyle.Solid, - Color.White, borderwidth, ButtonBorderStyle.Solid, - Color.Gray, borderwidth, ButtonBorderStyle.Solid, - Color.Gray, borderwidth, ButtonBorderStyle.Solid); - } - - public static void PaintClassicBordersIndented(object sender, PaintEventArgs e, int borderwidth) - { - ControlPaint.DrawBorder(e.Graphics, ((Control)sender).ClientRectangle, - Color.Gray, borderwidth, ButtonBorderStyle.Solid, - Color.Gray, borderwidth, ButtonBorderStyle.Solid, - Color.White, borderwidth, ButtonBorderStyle.Solid, - Color.White, borderwidth, ButtonBorderStyle.Solid); - } - - public static void ExtendedToolStripSeparator_Paint(object sender, PaintEventArgs e) - { - // Get the separator's width and height. - ToolStripSeparator toolStripSeparator = (ToolStripSeparator)sender; - int width = toolStripSeparator.Width; - int height = toolStripSeparator.Height; - - // Choose the colors for drawing. - Color foreColor = Color.Gray; - Color backColor = Color.Silver; - - // Fill the background. - e.Graphics.FillRectangle(new SolidBrush(backColor), 0, 0, width, height); - - // Draw the line. - e.Graphics.DrawLine(new Pen(foreColor), 4, height / 2, width - 4, height / 2); - } - } -} |
