[614] | 1 | using System;
|
---|
| 2 | using System.Drawing;
|
---|
| 3 | using System.Collections;
|
---|
| 4 | using System.ComponentModel;
|
---|
| 5 | using System.Windows.Forms;
|
---|
| 6 |
|
---|
| 7 | namespace 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;
|
---|
[614] | 19 | /// <summary>
|
---|
| 20 | /// Required designer variable.
|
---|
| 21 | /// </summary>
|
---|
| 22 | private System.ComponentModel.Container components = null;
|
---|
| 23 |
|
---|
| 24 | public DSplash()
|
---|
| 25 | {
|
---|
| 26 | //
|
---|
| 27 | // Required for Windows Form Designer support
|
---|
| 28 | //
|
---|
| 29 | InitializeComponent();
|
---|
| 30 |
|
---|
| 31 | //
|
---|
| 32 | // TODO: Add any constructor code after InitializeComponent call
|
---|
| 33 | //
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | /// <summary>
|
---|
| 37 | /// Clean up any resources being used.
|
---|
| 38 | /// </summary>
|
---|
| 39 | protected override void Dispose( bool disposing )
|
---|
| 40 | {
|
---|
| 41 | if( disposing )
|
---|
| 42 | {
|
---|
| 43 | if(components != null)
|
---|
| 44 | {
|
---|
| 45 | components.Dispose();
|
---|
| 46 | }
|
---|
| 47 | }
|
---|
| 48 | base.Dispose( disposing );
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | #region Windows Form Designer generated code
|
---|
| 52 | /// <summary>
|
---|
| 53 | /// Required method for Designer support - do not modify
|
---|
| 54 | /// the contents of this method with the code editor.
|
---|
| 55 | /// </summary>
|
---|
| 56 | private void InitializeComponent()
|
---|
| 57 | {
|
---|
[1050] | 58 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSplash));
|
---|
[627] | 59 | this.label1 = new System.Windows.Forms.Label();
|
---|
| 60 | this.lnkMail = new System.Windows.Forms.LinkLabel();
|
---|
| 61 | this.lblStatus = new System.Windows.Forms.Label();
|
---|
[1050] | 62 | this.lblVersion = new System.Windows.Forms.Label();
|
---|
| 63 | this.label2 = new System.Windows.Forms.Label();
|
---|
[627] | 64 | this.SuspendLayout();
|
---|
| 65 | //
|
---|
| 66 | // label1
|
---|
| 67 | //
|
---|
| 68 | this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
---|
[1050] | 69 | this.label1.Location = new System.Drawing.Point(12, 67);
|
---|
[627] | 70 | this.label1.Name = "label1";
|
---|
[1050] | 71 | this.label1.Size = new System.Drawing.Size(464, 40);
|
---|
[627] | 72 | this.label1.TabIndex = 0;
|
---|
[1050] | 73 | this.label1.Text = "Clinical Scheduling";
|
---|
[627] | 74 | this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
---|
| 75 | //
|
---|
| 76 | // lnkMail
|
---|
| 77 | //
|
---|
| 78 | this.lnkMail.Location = new System.Drawing.Point(0, 0);
|
---|
| 79 | this.lnkMail.Name = "lnkMail";
|
---|
| 80 | this.lnkMail.Size = new System.Drawing.Size(100, 23);
|
---|
| 81 | this.lnkMail.TabIndex = 4;
|
---|
| 82 | //
|
---|
| 83 | // lblStatus
|
---|
| 84 | //
|
---|
| 85 | this.lblStatus.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
---|
[1050] | 86 | this.lblStatus.Location = new System.Drawing.Point(80, 159);
|
---|
[627] | 87 | this.lblStatus.Name = "lblStatus";
|
---|
| 88 | this.lblStatus.Size = new System.Drawing.Size(328, 16);
|
---|
| 89 | this.lblStatus.TabIndex = 3;
|
---|
| 90 | this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
---|
| 91 | //
|
---|
[1050] | 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 | //
|
---|
[627] | 112 | // DSplash
|
---|
| 113 | //
|
---|
| 114 | this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
---|
[1050] | 115 | this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
|
---|
[627] | 116 | this.ClientSize = new System.Drawing.Size(488, 252);
|
---|
| 117 | this.ControlBox = false;
|
---|
[1050] | 118 | this.Controls.Add(this.label2);
|
---|
| 119 | this.Controls.Add(this.lblVersion);
|
---|
[627] | 120 | this.Controls.Add(this.lblStatus);
|
---|
| 121 | this.Controls.Add(this.lnkMail);
|
---|
| 122 | this.Controls.Add(this.label1);
|
---|
[1050] | 123 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
---|
| 124 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
---|
[627] | 125 | this.Name = "DSplash";
|
---|
| 126 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
---|
| 127 | this.Text = "Clinical Scheduling";
|
---|
| 128 | this.Load += new System.EventHandler(this.DSplash_Load);
|
---|
| 129 | this.ResumeLayout(false);
|
---|
[1050] | 130 | this.PerformLayout();
|
---|
[614] | 131 |
|
---|
| 132 | }
|
---|
| 133 | #endregion
|
---|
| 134 |
|
---|
[1050] | 135 | public delegate void dSetStatus(string sStatus);
|
---|
| 136 | public delegate void dAny();
|
---|
| 137 |
|
---|
| 138 | public void SetStatus(string sStatus)
|
---|
[614] | 139 | {
|
---|
[1050] | 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();
|
---|
[614] | 150 | }
|
---|
| 151 |
|
---|
| 152 | private void DSplash_Load(object sender, System.EventArgs e)
|
---|
| 153 | {
|
---|
[1050] | 154 | this.lblVersion.Text = "Version " + Application.ProductVersion;
|
---|
[614] | 155 | }
|
---|
| 156 |
|
---|
[1050] | 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 | }
|
---|
[614] | 168 | }
|
---|
[1050] | 169 |
|
---|
| 170 |
|
---|
| 171 |
|
---|
[614] | 172 | }
|
---|