source: Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs@ 1071

Last change on this file since 1071 was 1061, checked in by Sam Habiel, 14 years ago

DSplash: Removed Unused RemoteHide method.

File size: 7.2 KB
RevLine 
[614]1using System;
2using System.Drawing;
3using System.Collections;
4using System.ComponentModel;
5using System.Windows.Forms;
6
7namespace IndianHealthService.ClinicalScheduling
8{
9 /// <summary>
10 /// Summary description for DSplash.
11 /// </summary>
12 public class DSplash : System.Windows.Forms.Form
13 {
14 private System.Windows.Forms.Label label1;
15 private System.Windows.Forms.LinkLabel lnkMail;
16 private System.Windows.Forms.Label lblStatus;
[1050]17 private Label lblVersion;
18 private Label label2;
[1051]19 private ProgressBar progressBar1;
[614]20 /// <summary>
21 /// Required designer variable.
22 /// </summary>
23 private System.ComponentModel.Container components = null;
24
25 public DSplash()
26 {
27 //
28 // Required for Windows Form Designer support
29 //
30 InitializeComponent();
31
32 //
33 // TODO: Add any constructor code after InitializeComponent call
34 //
35 }
36
37 /// <summary>
38 /// Clean up any resources being used.
39 /// </summary>
40 protected override void Dispose( bool disposing )
41 {
42 if( disposing )
43 {
44 if(components != null)
45 {
46 components.Dispose();
47 }
48 }
49 base.Dispose( disposing );
50 }
51
52 #region Windows Form Designer generated code
53 /// <summary>
54 /// Required method for Designer support - do not modify
55 /// the contents of this method with the code editor.
56 /// </summary>
57 private void InitializeComponent()
58 {
[1050]59 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSplash));
[627]60 this.label1 = new System.Windows.Forms.Label();
61 this.lnkMail = new System.Windows.Forms.LinkLabel();
62 this.lblStatus = new System.Windows.Forms.Label();
[1050]63 this.lblVersion = new System.Windows.Forms.Label();
64 this.label2 = new System.Windows.Forms.Label();
[1051]65 this.progressBar1 = new System.Windows.Forms.ProgressBar();
[627]66 this.SuspendLayout();
67 //
68 // label1
69 //
70 this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
[1050]71 this.label1.Location = new System.Drawing.Point(12, 67);
[627]72 this.label1.Name = "label1";
[1050]73 this.label1.Size = new System.Drawing.Size(464, 40);
[627]74 this.label1.TabIndex = 0;
[1050]75 this.label1.Text = "Clinical Scheduling";
[627]76 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
77 //
78 // lnkMail
79 //
80 this.lnkMail.Location = new System.Drawing.Point(0, 0);
81 this.lnkMail.Name = "lnkMail";
82 this.lnkMail.Size = new System.Drawing.Size(100, 23);
83 this.lnkMail.TabIndex = 4;
84 //
85 // lblStatus
86 //
87 this.lblStatus.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
[1050]88 this.lblStatus.Location = new System.Drawing.Point(80, 159);
[627]89 this.lblStatus.Name = "lblStatus";
90 this.lblStatus.Size = new System.Drawing.Size(328, 16);
91 this.lblStatus.TabIndex = 3;
92 this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
93 //
[1050]94 // lblVersion
95 //
96 this.lblVersion.AutoSize = true;
97 this.lblVersion.Location = new System.Drawing.Point(210, 117);
98 this.lblVersion.Name = "lblVersion";
99 this.lblVersion.Size = new System.Drawing.Size(52, 13);
100 this.lblVersion.TabIndex = 5;
101 this.lblVersion.Text = "lblVersion";
102 this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
103 //
104 // label2
105 //
106 this.label2.AutoSize = true;
107 this.label2.Font = new System.Drawing.Font("Book Antiqua", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
108 this.label2.Location = new System.Drawing.Point(180, 21);
109 this.label2.Name = "label2";
110 this.label2.Size = new System.Drawing.Size(130, 46);
111 this.label2.TabIndex = 6;
112 this.label2.Text = "VISTA";
113 //
[1051]114 // progressBar1
115 //
116 this.progressBar1.Location = new System.Drawing.Point(18, 207);
117 this.progressBar1.Name = "progressBar1";
118 this.progressBar1.Size = new System.Drawing.Size(458, 14);
119 this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
120 this.progressBar1.TabIndex = 7;
121 //
[627]122 // DSplash
123 //
124 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
[1050]125 this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
[627]126 this.ClientSize = new System.Drawing.Size(488, 252);
127 this.ControlBox = false;
[1051]128 this.Controls.Add(this.progressBar1);
[1050]129 this.Controls.Add(this.label2);
130 this.Controls.Add(this.lblVersion);
[627]131 this.Controls.Add(this.lblStatus);
132 this.Controls.Add(this.lnkMail);
133 this.Controls.Add(this.label1);
[1050]134 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
135 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
[627]136 this.Name = "DSplash";
137 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
138 this.Text = "Clinical Scheduling";
139 this.Load += new System.EventHandler(this.DSplash_Load);
140 this.ResumeLayout(false);
[1050]141 this.PerformLayout();
[614]142
143 }
144 #endregion
145
[1050]146 public delegate void dSetStatus(string sStatus);
147 public delegate void dAny();
[1051]148 public delegate void dProgressBarSet(int number);
[1050]149
150 public void SetStatus(string sStatus)
[614]151 {
[1050]152 if (this.InvokeRequired == true)
153 {
154 dSetStatus d = new dSetStatus(SetStatus);
155 this.Invoke(d, new object[] { sStatus });
156 return;
157 }
158
159 this.lblStatus.Text = sStatus;
[614]160 }
161
162 private void DSplash_Load(object sender, System.EventArgs e)
163 {
[1050]164 this.lblVersion.Text = "Version " + Application.ProductVersion;
[614]165 }
166
[1050]167 public void RemoteClose()
168 {
169 dAny d = new dAny(this.Close);
170 this.Invoke(d);
171 }
172
[1051]173 public void RemoteProgressBarMaxSet(int max)
174 {
175 if (this.InvokeRequired == true)
176 {
177 dProgressBarSet d = new dProgressBarSet(RemoteProgressBarMaxSet);
178 this.Invoke(d, new object[] { max });
179 return;
180 }
181
182 this.progressBar1.Maximum = max;
183 }
184
185 public void RemoteProgressBarValueSet(int val)
186 {
187 if (this.InvokeRequired == true)
188 {
189 dProgressBarSet d = new dProgressBarSet(RemoteProgressBarValueSet);
190 this.Invoke(d, new object[] { val });
191 return;
192 }
193
194 this.progressBar1.Value = val;
195 }
196
[614]197 }
[1050]198
199
200
[614]201}
Note: See TracBrowser for help on using the repository browser.