2 using System.Drawing;
\r
3 using System.Collections;
\r
4 using System.ComponentModel;
\r
5 using System.Windows.Forms;
\r
10 /// Summary description for Splash.
\r
12 public class Splash : System.Windows.Forms.Form
\r
14 private System.Windows.Forms.Timer tmrSplash;
\r
15 private System.ComponentModel.IContainer components;
\r
16 private System.Windows.Forms.Label lblVersion;
\r
17 private static bool fadeOut = false;
\r
22 // Required for Windows Form Designer support
\r
24 InitializeComponent();
\r
26 this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
\r
27 this.SetStyle(ControlStyles.UserPaint, true);
\r
28 this.SetStyle(ControlStyles.DoubleBuffer, true);
\r
32 /// Clean up any resources being used.
\r
34 protected override void Dispose( bool disposing )
\r
38 if(components != null)
\r
40 components.Dispose();
\r
43 base.Dispose( disposing );
\r
46 #region Windows Form Designer generated code
\r
48 /// Required method for Designer support - do not modify
\r
49 /// the contents of this method with the code editor.
\r
51 private void InitializeComponent()
\r
53 this.components = new System.ComponentModel.Container();
\r
54 System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Splash));
\r
55 this.tmrSplash = new System.Windows.Forms.Timer(this.components);
\r
56 this.lblVersion = new System.Windows.Forms.Label();
\r
57 this.SuspendLayout();
\r
61 this.tmrSplash.Enabled = true;
\r
62 this.tmrSplash.Interval = 3000;
\r
63 this.tmrSplash.Tick += new System.EventHandler(this.tmrSplash_Tick);
\r
67 this.lblVersion.BackColor = System.Drawing.Color.Transparent;
\r
68 this.lblVersion.Font = new System.Drawing.Font("Times New Roman", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
\r
69 this.lblVersion.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(64)), ((System.Byte)(64)), ((System.Byte)(64)));
\r
70 this.lblVersion.Location = new System.Drawing.Point(8, 309);
\r
71 this.lblVersion.Name = "lblVersion";
\r
72 this.lblVersion.Size = new System.Drawing.Size(216, 23);
\r
73 this.lblVersion.TabIndex = 0;
\r
74 this.lblVersion.Text = "version";
\r
78 this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
\r
79 this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));
\r
80 this.ClientSize = new System.Drawing.Size(425, 326);
\r
81 this.ControlBox = false;
\r
82 this.Controls.AddRange(new System.Windows.Forms.Control[] {
\r
84 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
\r
85 this.Name = "Splash";
\r
86 this.ShowInTaskbar = false;
\r
87 this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
\r
88 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
\r
89 this.Text = "Blackjack";
\r
90 this.TopMost = true;
\r
91 this.Click += new System.EventHandler(this.Splash_Click);
\r
92 this.Load += new System.EventHandler(this.Splash_Load);
\r
93 this.ResumeLayout(false);
\r
98 private void tmrSplash_Tick(object sender, System.EventArgs e)
\r
102 tmrSplash.Interval = 10;
\r
103 this.Opacity -= .02;
\r
104 if( this.Opacity == 0 )
\r
106 tmrSplash.Enabled = false;
\r
116 private void Splash_Click(object sender, System.EventArgs e)
\r
121 private void Splash_Load(object sender, System.EventArgs e)
\r
123 lblVersion.Text = "version " + Application.ProductVersion.ToString();
\r