aboutsummaryrefslogtreecommitdiff
path: root/Histacom2.Engine/Template
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-09-04 20:14:19 -0400
committerlempamo <[email protected]>2017-09-04 20:14:19 -0400
commit1a970e69dada088c5f5ea82dd5683da9ae306ebe (patch)
tree1f77a784221a7565843624f321995ab8856e4a3a /Histacom2.Engine/Template
parent69d4465542fb00108576219d9c1da026f2e864b1 (diff)
downloadhistacom2-1a970e69dada088c5f5ea82dd5683da9ae306ebe.tar.gz
histacom2-1a970e69dada088c5f5ea82dd5683da9ae306ebe.tar.bz2
histacom2-1a970e69dada088c5f5ea82dd5683da9ae306ebe.zip
new classic buttons!
Diffstat (limited to 'Histacom2.Engine/Template')
-rw-r--r--Histacom2.Engine/Template/Infobox95.Designer.cs31
-rw-r--r--Histacom2.Engine/Template/Infobox95.cs3
2 files changed, 14 insertions, 20 deletions
diff --git a/Histacom2.Engine/Template/Infobox95.Designer.cs b/Histacom2.Engine/Template/Infobox95.Designer.cs
index 0bccf85..6ee2a6a 100644
--- a/Histacom2.Engine/Template/Infobox95.Designer.cs
+++ b/Histacom2.Engine/Template/Infobox95.Designer.cs
@@ -29,12 +29,12 @@
private void InitializeComponent()
{
this.programContent = new System.Windows.Forms.Panel();
- this.button1 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
+ this.button1 = new Histacom2.Engine.UI.ClassicButton();
+ this.button3 = new Histacom2.Engine.UI.ClassicButton();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel1 = new System.Windows.Forms.Panel();
this.infoText = new System.Windows.Forms.Label();
- this.button2 = new System.Windows.Forms.Button();
+ this.button2 = new Histacom2.Engine.UI.ClassicButton();
this.programContent.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
@@ -57,16 +57,13 @@
//
// button1
//
- this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button1.BackColor = System.Drawing.Color.Silver;
+ this.button1.ForeColor = System.Drawing.Color.Black;
this.button1.Location = new System.Drawing.Point(150, 84);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 23);
- this.button1.TabIndex = 5;
+ this.button1.TabIndex = 6;
this.button1.Text = "Yes";
- this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button3
@@ -74,13 +71,13 @@
this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.button3.BackColor = System.Drawing.Color.Silver;
+ this.button3.ForeColor = System.Drawing.Color.Black;
this.button3.Location = new System.Drawing.Point(323, 84);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(80, 23);
this.button3.TabIndex = 4;
this.button3.Text = "Cancel";
- this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// pictureBox1
@@ -116,13 +113,13 @@
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
- this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
- this.button2.Location = new System.Drawing.Point(236, 84);
+ this.button2.BackColor = System.Drawing.Color.Silver;
+ this.button2.ForeColor = System.Drawing.Color.Black;
+ this.button2.Location = new System.Drawing.Point(237, 84);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(80, 23);
this.button2.TabIndex = 1;
this.button2.Text = "No";
- this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Infobox95
@@ -145,8 +142,8 @@
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Panel panel1;
public System.Windows.Forms.Label infoText;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Button button3;
- private System.Windows.Forms.Button button1;
+ private UI.ClassicButton button1;
+ private UI.ClassicButton button2;
+ private UI.ClassicButton button3;
}
} \ No newline at end of file
diff --git a/Histacom2.Engine/Template/Infobox95.cs b/Histacom2.Engine/Template/Infobox95.cs
index f0ed0db..dca45bb 100644
--- a/Histacom2.Engine/Template/Infobox95.cs
+++ b/Histacom2.Engine/Template/Infobox95.cs
@@ -13,9 +13,6 @@ namespace Histacom2.Engine.Template
public Infobox95(InfoboxType type, InfoboxButtons btns)
{
InitializeComponent();
- button1.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2);
- button2.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2);
- button3.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2);
switch (type)
{