Changeset 1050 for Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs
- Timestamp:
- Jan 5, 2011, 4:10:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs
r627 r1050 13 13 { 14 14 private System.Windows.Forms.Label label1; 15 //private System.Windows.Forms.Label lblVersion;16 15 private System.Windows.Forms.LinkLabel lnkMail; 17 16 private System.Windows.Forms.Label lblStatus; 17 private Label lblVersion; 18 private Label label2; 18 19 /// <summary> 19 20 /// Required designer variable. … … 55 56 private void InitializeComponent() 56 57 { 58 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSplash)); 57 59 this.label1 = new System.Windows.Forms.Label(); 58 60 this.lnkMail = new System.Windows.Forms.LinkLabel(); 59 61 this.lblStatus = new System.Windows.Forms.Label(); 62 this.lblVersion = new System.Windows.Forms.Label(); 63 this.label2 = new System.Windows.Forms.Label(); 60 64 this.SuspendLayout(); 61 65 // … … 63 67 // 64 68 this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 65 this.label1.Location = new System.Drawing.Point( 24, 32);69 this.label1.Location = new System.Drawing.Point(12, 67); 66 70 this.label1.Name = "label1"; 67 this.label1.Size = new System.Drawing.Size(4 48, 40);71 this.label1.Size = new System.Drawing.Size(464, 40); 68 72 this.label1.TabIndex = 0; 69 this.label1.Text = " VistAClinical Scheduling";73 this.label1.Text = "Clinical Scheduling"; 70 74 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 71 75 // … … 80 84 // 81 85 this.lblStatus.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; 82 this.lblStatus.Location = new System.Drawing.Point(8 8, 160);86 this.lblStatus.Location = new System.Drawing.Point(80, 159); 83 87 this.lblStatus.Name = "lblStatus"; 84 88 this.lblStatus.Size = new System.Drawing.Size(328, 16); … … 86 90 this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 87 91 // 92 // lblVersion 93 // 94 this.lblVersion.AutoSize = true; 95 this.lblVersion.Location = new System.Drawing.Point(210, 117); 96 this.lblVersion.Name = "lblVersion"; 97 this.lblVersion.Size = new System.Drawing.Size(52, 13); 98 this.lblVersion.TabIndex = 5; 99 this.lblVersion.Text = "lblVersion"; 100 this.lblVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 101 // 102 // label2 103 // 104 this.label2.AutoSize = true; 105 this.label2.Font = new System.Drawing.Font("Book Antiqua", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 106 this.label2.Location = new System.Drawing.Point(180, 21); 107 this.label2.Name = "label2"; 108 this.label2.Size = new System.Drawing.Size(130, 46); 109 this.label2.TabIndex = 6; 110 this.label2.Text = "VISTA"; 111 // 88 112 // DSplash 89 113 // 90 114 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 115 this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); 91 116 this.ClientSize = new System.Drawing.Size(488, 252); 92 117 this.ControlBox = false; 118 this.Controls.Add(this.label2); 119 this.Controls.Add(this.lblVersion); 93 120 this.Controls.Add(this.lblStatus); 94 121 this.Controls.Add(this.lnkMail); 95 122 this.Controls.Add(this.label1); 96 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; 123 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 124 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 97 125 this.Name = "DSplash"; 98 126 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; … … 100 128 this.Load += new System.EventHandler(this.DSplash_Load); 101 129 this.ResumeLayout(false); 130 this.PerformLayout(); 102 131 103 132 } 104 133 #endregion 105 134 106 public void SetStatus(string sStatus) 135 public delegate void dSetStatus(string sStatus); 136 public delegate void dAny(); 137 138 public void SetStatus(string sStatus) 107 139 { 108 this.Status = sStatus; 140 if (this.InvokeRequired == true) 141 { 142 dSetStatus d = new dSetStatus(SetStatus); 143 this.Invoke(d, new object[] { sStatus }); 144 return; 145 } 146 147 System.Diagnostics.Debug.Assert(this.InvokeRequired == false); 148 this.lblStatus.Text = sStatus; 149 this.Refresh(); 109 150 } 110 151 111 152 private void DSplash_Load(object sender, System.EventArgs e) 112 153 { 113 //this.lblVersion.Text = "Version " + Application.ProductVersion;154 this.lblVersion.Text = "Version " + Application.ProductVersion; 114 155 } 115 156 116 #region Properties 117 /// <summary> 118 /// Gets or sets the value of the Status displayed on the splash screen 119 /// </summary> 120 public String Status 121 { 122 get 123 { 124 return lblStatus.Text; 125 } 126 set 127 { 128 lblStatus.Text = value; 129 } 130 } 131 #endregion Properties 157 public void RemoteClose() 158 { 159 dAny d = new dAny(this.Close); 160 this.Invoke(d); 161 } 162 163 public void RemoteHide() 164 { 165 dAny d = new dAny(this.Hide); 166 this.Invoke(d); 167 } 132 168 } 169 170 171 133 172 }
Note:
See TracChangeset
for help on using the changeset viewer.