diff options
| author | lempamo <[email protected]> | 2017-09-12 09:51:26 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-09-12 09:51:26 -0400 |
| commit | ab9f118edb06826ed49c0b46bb1bce38d407e4f6 (patch) | |
| tree | 63e46f589ac10f4df5806c5d2ecb4c104adaed92 | |
| parent | c11ba68e8f319acc62b72259235a04b12892bffa (diff) | |
| download | histacom2-ab9f118edb06826ed49c0b46bb1bce38d407e4f6.tar.gz histacom2-ab9f118edb06826ed49c0b46bb1bce38d407e4f6.tar.bz2 histacom2-ab9f118edb06826ed49c0b46bb1bce38d407e4f6.zip | |
various classic control things
| -rw-r--r-- | Histacom2.Engine/Histacom2.Engine.csproj | 3 | ||||
| -rw-r--r-- | Histacom2.Engine/Paintbrush.cs | 1 | ||||
| -rw-r--r-- | Histacom2.Engine/UI/ClassicButton.cs | 35 | ||||
| -rw-r--r-- | Histacom2.Engine/UI/ClassicLabel.cs | 29 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs | 27 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs | 5 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs | 89 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/WebChat1998.resx | 5 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/WinClassicTimeDistorter.Designer.cs | 8 |
9 files changed, 121 insertions, 81 deletions
diff --git a/Histacom2.Engine/Histacom2.Engine.csproj b/Histacom2.Engine/Histacom2.Engine.csproj index e8b62bc..69a1b02 100644 --- a/Histacom2.Engine/Histacom2.Engine.csproj +++ b/Histacom2.Engine/Histacom2.Engine.csproj @@ -94,6 +94,9 @@ <Compile Include="UI\ClassicButton.cs"> <SubType>Component</SubType> </Compile> + <Compile Include="UI\ClassicLabel.cs"> + <SubType>Component</SubType> + </Compile> <Compile Include="UI\ClassicTextbox.cs"> <SubType>Component</SubType> </Compile> diff --git a/Histacom2.Engine/Paintbrush.cs b/Histacom2.Engine/Paintbrush.cs index 4424371..02cb49b 100644 --- a/Histacom2.Engine/Paintbrush.cs +++ b/Histacom2.Engine/Paintbrush.cs @@ -56,6 +56,7 @@ namespace Histacom2.Engine public static Color GetDarkFromColor(Color basecolor) { + if (basecolor == Color.Silver) return Color.Gray; if (basecolor == Color.FromArgb(112, 112, 112)) return Color.FromArgb(72, 72, 72); if (basecolor == Color.FromArgb(169, 200, 169)) return Color.FromArgb(95, 153, 95); return ControlPaint.Dark(basecolor, 70); diff --git a/Histacom2.Engine/UI/ClassicButton.cs b/Histacom2.Engine/UI/ClassicButton.cs index b761504..1a77964 100644 --- a/Histacom2.Engine/UI/ClassicButton.cs +++ b/Histacom2.Engine/UI/ClassicButton.cs @@ -8,14 +8,26 @@ using System.Windows.Forms; namespace Histacom2.Engine.UI { - public class ClassicButton : Control + public class ClassicButton : Control, IButtonControl { private Color _lightBack; private Color _darkBack; - private Font _font; private bool _pressing = false; + public DialogResult DialogResult + { + get + { + throw new NotImplementedException(); + } + + set + { + throw new NotImplementedException(); + } + } + public ClassicButton() : base() { if (SaveSystem.currentTheme != null) BackColor = SaveSystem.currentTheme.threeDObjectsColor; @@ -26,8 +38,8 @@ namespace Histacom2.Engine.UI if (SaveSystem.currentTheme != null) ForeColor = SaveSystem.currentTheme.threeDObjectsTextColor; else ForeColor = Color.Black; - if (SaveSystem.currentTheme != null) _font = SaveSystem.currentTheme.buttonFont; - else _font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular); + if (SaveSystem.currentTheme != null) Font = SaveSystem.currentTheme.buttonFont; + else Font = new Font("Microsoft Sans Serif", 8.25F, FontStyle.Regular); MouseDown += (s, e) => { _pressing = true; Invalidate(); }; MouseUp += (s, e) => { _pressing = false; Invalidate(); }; @@ -59,7 +71,7 @@ namespace Histacom2.Engine.UI g.FillRectangle(new SolidBrush(_darkBack), new Rectangle(1, 1, Width - 2, Height - 2)); g.FillRectangle(new SolidBrush(BackColor), new Rectangle(2, 2, Width - 3, Height - 3)); - g.DrawString(Text, _font, new SolidBrush(ForeColor), ((Width / 2) + 1) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 2, sf); + g.DrawString(Text, Font, new SolidBrush(ForeColor), ((Width / 2) + 1) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 2, sf); } else { @@ -68,9 +80,18 @@ namespace Histacom2.Engine.UI g.FillRectangle(new SolidBrush(_darkBack), new Rectangle(1, 1, Width - 2, Height - 2)); g.FillRectangle(new SolidBrush(BackColor), new Rectangle(1, 1, Width - 3, Height - 3)); - g.DrawString(Text, _font, new SolidBrush(ForeColor), (Width / 2) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 1, sf); + g.DrawString(Text, Font, new SolidBrush(ForeColor), (Width / 2) + Padding.Left, (Height / 2) - (g.MeasureString(Text, Font).Height / 2) + 1, sf); } } - + + public void NotifyDefault(bool value) + { + + } + + public void PerformClick() + { + this.OnClick(new EventArgs()); + } } } diff --git a/Histacom2.Engine/UI/ClassicLabel.cs b/Histacom2.Engine/UI/ClassicLabel.cs new file mode 100644 index 0000000..0b9d9c2 --- /dev/null +++ b/Histacom2.Engine/UI/ClassicLabel.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Histacom2.Engine.UI +{ + public class ClassicLabel : Control + { + public ClassicLabel() + { + + } + + protected override void OnPaint(PaintEventArgs e) + { + base.OnPaint(e); + var gfx = e.Graphics; + gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; + + gfx.DrawString(Text, Font, new SolidBrush(ForeColor), 0, 0); + } + } +} diff --git a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs index cc266c0..6102f9f 100644 --- a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.Designer.cs @@ -31,12 +31,10 @@ this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.pictureBox1 = new Histacom2.Engine.UI.ClassicButton(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.pictureBox3 = new System.Windows.Forms.PictureBox(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.pictureBox3 = new Histacom2.Engine.UI.ClassicButton(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); this.SuspendLayout(); // // label1 @@ -68,12 +66,13 @@ // // pictureBox1 // - this.pictureBox1.BackgroundImage = global::Histacom2.Properties.Resources.GTN95_Check; + this.pictureBox1.BackColor = System.Drawing.Color.Silver; + this.pictureBox1.ForeColor = System.Drawing.Color.Black; this.pictureBox1.Location = new System.Drawing.Point(191, 30); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(55, 27); - this.pictureBox1.TabIndex = 3; - this.pictureBox1.TabStop = false; + this.pictureBox1.TabIndex = 5; + this.pictureBox1.Text = "Check"; this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // pictureBox2 @@ -86,12 +85,14 @@ // // pictureBox3 // - this.pictureBox3.BackgroundImage = global::Histacom2.Properties.Resources.GTN95_Restart; + this.pictureBox3.BackColor = System.Drawing.Color.Silver; + this.pictureBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.pictureBox3.ForeColor = System.Drawing.Color.Black; this.pictureBox3.Location = new System.Drawing.Point(19, 62); this.pictureBox3.Name = "pictureBox3"; this.pictureBox3.Size = new System.Drawing.Size(227, 23); - this.pictureBox3.TabIndex = 5; - this.pictureBox3.TabStop = false; + this.pictureBox3.TabIndex = 0; + this.pictureBox3.Text = "Restart"; this.pictureBox3.Click += new System.EventHandler(this.pictureBox3_Click); // // GuessTheNumber @@ -107,9 +108,7 @@ this.Controls.Add(this.label1); this.Name = "GuessTheNumber"; this.Size = new System.Drawing.Size(268, 100); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -120,8 +119,8 @@ private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.PictureBox pictureBox1; + private Engine.UI.ClassicButton pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; - private System.Windows.Forms.PictureBox pictureBox3; + private Engine.UI.ClassicButton pictureBox3; } } diff --git a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs index 72adc0e..4766c8d 100644 --- a/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs +++ b/Histacom2/OS/Win95/Win95Apps/GuessTheNumber.cs @@ -21,11 +21,6 @@ namespace Histacom2.OS.Win95.Win95Apps rnd = new Random(); num = rnd.Next(0, 101); - - pictureBox1.MouseDown += (s, a) => pictureBox1.BackgroundImage = Properties.Resources.GTN95_CheckClicked; - pictureBox1.MouseUp += (s, a) => pictureBox1.BackgroundImage = Properties.Resources.GTN95_Check; - pictureBox3.MouseDown += (s, a) => pictureBox3.BackgroundImage = Properties.Resources.GTN95_RestartClicked; - pictureBox3.MouseUp += (s, a) => pictureBox3.BackgroundImage = Properties.Resources.GTN95_Restart; } private void pictureBox3_Click(object sender, EventArgs e) diff --git a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs index 8a32029..ea9d0cd 100644 --- a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs @@ -29,28 +29,28 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - this.resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1998)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1998)); this.Chat = new System.Windows.Forms.Timer(this.components); this.listBox1 = new System.Windows.Forms.ListBox(); - this.label1 = new System.Windows.Forms.Label(); + this.label1 = new Histacom2.Engine.UI.ClassicLabel(); this.history = new System.Windows.Forms.TextBox(); this.panel1 = new System.Windows.Forms.Panel(); - this.label5 = new System.Windows.Forms.Label(); - this.button5 = new System.Windows.Forms.Button(); - this.label6 = new System.Windows.Forms.Label(); + this.label5 = new Histacom2.Engine.UI.ClassicLabel(); + this.button5 = new Histacom2.Engine.UI.ClassicButton(); + this.label6 = new Histacom2.Engine.UI.ClassicLabel(); this.typechat = new System.Windows.Forms.TextBox(); this.login = new System.Windows.Forms.Panel(); - this.label2 = new System.Windows.Forms.Label(); + this.label2 = new Histacom2.Engine.UI.ClassicLabel(); this.txtscreenname = new System.Windows.Forms.TextBox(); - this.button1 = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); + this.button1 = new Histacom2.Engine.UI.ClassicButton(); + this.label3 = new Histacom2.Engine.UI.ClassicLabel(); + this.label4 = new Histacom2.Engine.UI.ClassicLabel(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); - this.label7 = new System.Windows.Forms.Label(); - this.button2 = new System.Windows.Forms.Button(); - this.button3 = new System.Windows.Forms.Button(); - this.button4 = new System.Windows.Forms.Button(); + this.label7 = new Histacom2.Engine.UI.ClassicLabel(); + this.button2 = new Histacom2.Engine.UI.ClassicButton(); + this.button3 = new Histacom2.Engine.UI.ClassicButton(); + this.button4 = new Histacom2.Engine.UI.ClassicButton(); this.panel1.SuspendLayout(); this.login.SuspendLayout(); this.SuspendLayout(); @@ -73,8 +73,7 @@ // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(501, 13); + this.label1.Location = new System.Drawing.Point(506, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(85, 13); this.label1.TabIndex = 1; @@ -107,7 +106,6 @@ // // label5 // - this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(13, 18); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(84, 13); @@ -116,17 +114,18 @@ // // button5 // - this.button5.Location = new System.Drawing.Point(97, 13); + this.button5.BackColor = System.Drawing.Color.Silver; + this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.button5.ForeColor = System.Drawing.Color.Black; + this.button5.Location = new System.Drawing.Point(101, 13); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(75, 23); this.button5.TabIndex = 0; this.button5.Text = "Download"; - this.button5.UseVisualStyleBackColor = true; // // label6 // this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(504, 374); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(62, 13); @@ -157,7 +156,6 @@ // // label2 // - this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(328, 161); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(149, 13); @@ -174,19 +172,18 @@ // button1 // this.button1.BackColor = System.Drawing.Color.Silver; - this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.button1.ForeColor = System.Drawing.Color.Black; this.button1.Location = new System.Drawing.Point(331, 208); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(151, 23); this.button1.TabIndex = 4; this.button1.Text = "Login"; - this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.Button1_Click); // // label3 // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(196, 16); + this.label3.Location = new System.Drawing.Point(202, 16); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(112, 13); this.label3.TabIndex = 3; @@ -194,7 +191,6 @@ // // label4 // - this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(118, 56); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(93, 13); @@ -229,48 +225,48 @@ // // label7 // - this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(22, 13); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(406, 13); + this.label7.Size = new System.Drawing.Size(441, 13); this.label7.TabIndex = 7; this.label7.Text = "To speak, just type in the bottom textbox, then click the Speak button or press E" + "nter."; // // button2 // - this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right) - | System.Windows.Forms.AnchorStyles.Right))); + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.button2.BackColor = System.Drawing.Color.Silver; - this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.button2.ForeColor = System.Drawing.Color.Black; this.button2.Location = new System.Drawing.Point(422, 415); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(71, 23); this.button2.TabIndex = 8; this.button2.Text = "Speak"; - this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.Button2_Click); // // button3 // this.button3.BackColor = System.Drawing.Color.Silver; - this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.button3.ForeColor = System.Drawing.Color.Black; this.button3.Location = new System.Drawing.Point(149, 427); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(75, 23); this.button3.TabIndex = 9; this.button3.Text = "Paul"; - this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.Button3_Click); // // button4 // + this.button4.BackColor = System.Drawing.Color.Silver; + this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.button4.ForeColor = System.Drawing.Color.Black; this.button4.Location = new System.Drawing.Point(235, 427); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(75, 23); this.button4.TabIndex = 10; this.button4.Text = "Bill"; - this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.Button4_Click); // // WebChat1998 @@ -293,7 +289,6 @@ this.Size = new System.Drawing.Size(724, 462); this.Load += new System.EventHandler(this.WebChat1998_Load); this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); this.login.ResumeLayout(false); this.login.PerformLayout(); this.ResumeLayout(false); @@ -305,25 +300,25 @@ private System.Windows.Forms.Timer Chat; private System.Windows.Forms.ListBox listBox1; - private System.Windows.Forms.Label label1; + private Histacom2.Engine.UI.ClassicLabel label1; private System.Windows.Forms.TextBox history; private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Button button5; - private System.Windows.Forms.Label label5; + private Histacom2.Engine.UI.ClassicLabel label6; + private Histacom2.Engine.UI.ClassicButton button5; + private Histacom2.Engine.UI.ClassicLabel label5; private System.Windows.Forms.TextBox typechat; private System.Windows.Forms.Panel login; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Button button1; + private Histacom2.Engine.UI.ClassicLabel label4; + private Histacom2.Engine.UI.ClassicLabel label3; + private Histacom2.Engine.UI.ClassicButton button1; private System.Windows.Forms.TextBox txtscreenname; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Button button2; - private System.Windows.Forms.Button button3; - private System.Windows.Forms.Button button4; + private Histacom2.Engine.UI.ClassicLabel label2; + private Histacom2.Engine.UI.ClassicLabel label7; + private Histacom2.Engine.UI.ClassicButton button2; + private Histacom2.Engine.UI.ClassicButton button3; + private Histacom2.Engine.UI.ClassicButton button4; private System.ComponentModel.ComponentResourceManager resources; } } diff --git a/Histacom2/OS/Win95/Win95Apps/WebChat1998.resx b/Histacom2/OS/Win95/Win95Apps/WebChat1998.resx index f1d3183..61225ed 100644 --- a/Histacom2/OS/Win95/Win95Apps/WebChat1998.resx +++ b/Histacom2/OS/Win95/Win95Apps/WebChat1998.resx @@ -117,10 +117,9 @@ <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> - <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> - <data name="Chat.TrayLocation" type="System.Drawing.Point, System.Drawing"> + <metadata name="Chat.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> - </data> + </metadata> <data name="textBox1.Text" xml:space="preserve"> <value>If you do not agree to the following rules below DO NOT log into the chat: diff --git a/Histacom2/OS/Win95/Win95Apps/WinClassicTimeDistorter.Designer.cs b/Histacom2/OS/Win95/Win95Apps/WinClassicTimeDistorter.Designer.cs index ca74bd4..33ab4f2 100644 --- a/Histacom2/OS/Win95/Win95Apps/WinClassicTimeDistorter.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/WinClassicTimeDistorter.Designer.cs @@ -34,7 +34,7 @@ this.lblCurrent = new System.Windows.Forms.Label(); this.lblYear = new System.Windows.Forms.Label(); this.lblTo = new System.Windows.Forms.Label(); - this.btnGo = new System.Windows.Forms.Button(); + this.btnGo = new Histacom2.Engine.UI.ClassicButton(); this.lblCountDown = new System.Windows.Forms.Label(); this.countDownTimer = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); @@ -104,14 +104,12 @@ // // btnGo // - this.btnGo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnGo.Location = new System.Drawing.Point(162, 133); this.btnGo.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3); this.btnGo.Name = "btnGo"; this.btnGo.Size = new System.Drawing.Size(124, 23); this.btnGo.TabIndex = 7; - this.btnGo.Text = "Go to destination year"; - this.btnGo.UseVisualStyleBackColor = true; + this.btnGo.Text = "Go To Destination Year"; this.btnGo.Click += new System.EventHandler(this.btnGo_Click); // // lblCountDown @@ -158,7 +156,7 @@ private System.Windows.Forms.Label lblYear; internal System.Windows.Forms.Label lblCountDown; private System.Windows.Forms.Timer countDownTimer; - internal System.Windows.Forms.Button btnGo; + internal Histacom2.Engine.UI.ClassicButton btnGo; internal System.Windows.Forms.Label lblTo; internal System.Windows.Forms.Label lblDestYear; } |
