![]() |
Sylloge
A C# helper library
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00018 using System; 00019 using System.Collections.Generic; 00020 using System.ComponentModel; 00021 using System.Data; 00022 using System.Drawing; 00023 using System.Text; 00024 using System.Windows.Forms; 00025 00026 namespace Sylloge 00027 { 00028 namespace Forms 00029 { 00030 public partial class SplashScreen : Form 00031 { 00037 public SplashScreen(int progMax, System.Drawing.Image bgImage) 00038 { 00039 this.InitializeComponent(); 00040 this.BackgroundImage = bgImage; 00041 this.BackgroundImageLayout = ImageLayout.Stretch; 00042 this.c_ProgressBar.Maximum = progMax; 00043 this.c_ProgressBar.Minimum = 0; 00044 this.c_ProgressBar.Value = 0; 00045 } 00046 00050 public ProgressBar ProgressBar 00051 { 00052 get 00053 { 00054 return this.c_ProgressBar; 00055 } 00056 } 00057 00061 public string Status 00062 { 00063 set 00064 { 00065 this.c_LabelStatus.Text = value; 00066 this.c_LabelStatus.Refresh(); 00067 this.c_ProgressBar.Value += 1; 00068 this.c_ProgressBar.Refresh(); 00069 } 00070 } 00071 } 00072 } 00073 }
1.7.4