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

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

DSplash: Removed Unused RemoteHide method.

File size: 7.2 KB
Line 
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;
17 private Label lblVersion;
18 private Label label2;
19 private ProgressBar progressBar1;
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 {
59 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSplash));
60 this.label1 = new System.Windows.Forms.Label();
61 this.lnkMail = new System.Windows.Forms.LinkLabel();
62 this.lblStatus = new System.Windows.Forms.Label();
63 this.lblVersion = new System.Windows.Forms.Label();
64 this.label2 = new System.Windows.Forms.Label();
65 this.progressBar1 = new System.Windows.Forms.ProgressBar();
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)));
71 this.label1.Location = new System.Drawing.Point(12, 67);
72 this.label1.Name = "label1";
73 this.label1.Size = new System.Drawing.Size(464, 40);
74 this.label1.TabIndex = 0;
75 this.label1.Text = "Clinical Scheduling";
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;
88 this.lblStatus.Location = new System.Drawing.Point(80, 159);
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 //
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 //
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 //
122 // DSplash
123 //
124 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
125 this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
126 this.ClientSize = new System.Drawing.Size(488, 252);
127 this.ControlBox = false;
128 this.Controls.Add(this.progressBar1);
129 this.Controls.Add(this.label2);
130 this.Controls.Add(this.lblVersion);
131 this.Controls.Add(this.lblStatus);
132 this.Controls.Add(this.lnkMail);
133 this.Controls.Add(this.label1);
134 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
135 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
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);
141 this.PerformLayout();
142
143 }
144 #endregion
145
146 public delegate void dSetStatus(string sStatus);
147 public delegate void dAny();
148 public delegate void dProgressBarSet(int number);
149
150 public void SetStatus(string sStatus)
151 {
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;
160 }
161
162 private void DSplash_Load(object sender, System.EventArgs e)
163 {
164 this.lblVersion.Text = "Version " + Application.ProductVersion;
165 }
166
167 public void RemoteClose()
168 {
169 dAny d = new dAny(this.Close);
170 this.Invoke(d);
171 }
172
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
197 }
198
199
200
201}
Note: See TracBrowser for help on using the repository browser.