Ignore:
Timestamp:
Jan 5, 2011, 4:10:20 AM (13 years ago)
Author:
Sam Habiel
Message:

Bumped version number to 1.5
DSplash: Changes intended to support Asynchronous invokation of Splash Screen.
CGDocumentManager: Extensive changes to increase speed and invoke Splash screen async.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DSplash.cs

    r627 r1050  
    1313        {
    1414                private System.Windows.Forms.Label label1;
    15         //private System.Windows.Forms.Label lblVersion;
    1615                private System.Windows.Forms.LinkLabel lnkMail;
    1716                private System.Windows.Forms.Label lblStatus;
     17        private Label lblVersion;
     18        private Label label2;
    1819                /// <summary>
    1920                /// Required designer variable.
     
    5556                private void InitializeComponent()
    5657                {
     58            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DSplash));
    5759            this.label1 = new System.Windows.Forms.Label();
    5860            this.lnkMail = new System.Windows.Forms.LinkLabel();
    5961            this.lblStatus = new System.Windows.Forms.Label();
     62            this.lblVersion = new System.Windows.Forms.Label();
     63            this.label2 = new System.Windows.Forms.Label();
    6064            this.SuspendLayout();
    6165            //
     
    6367            //
    6468            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);
    6670            this.label1.Name = "label1";
    67             this.label1.Size = new System.Drawing.Size(448, 40);
     71            this.label1.Size = new System.Drawing.Size(464, 40);
    6872            this.label1.TabIndex = 0;
    69             this.label1.Text = "VistA Clinical Scheduling";
     73            this.label1.Text = "Clinical Scheduling";
    7074            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
    7175            //
     
    8084            //
    8185            this.lblStatus.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
    82             this.lblStatus.Location = new System.Drawing.Point(88, 160);
     86            this.lblStatus.Location = new System.Drawing.Point(80, 159);
    8387            this.lblStatus.Name = "lblStatus";
    8488            this.lblStatus.Size = new System.Drawing.Size(328, 16);
     
    8690            this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
    8791            //
     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            //
    88112            // DSplash
    89113            //
    90114            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     115            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
    91116            this.ClientSize = new System.Drawing.Size(488, 252);
    92117            this.ControlBox = false;
     118            this.Controls.Add(this.label2);
     119            this.Controls.Add(this.lblVersion);
    93120            this.Controls.Add(this.lblStatus);
    94121            this.Controls.Add(this.lnkMail);
    95122            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")));
    97125            this.Name = "DSplash";
    98126            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     
    100128            this.Load += new System.EventHandler(this.DSplash_Load);
    101129            this.ResumeLayout(false);
     130            this.PerformLayout();
    102131
    103132                }
    104133                #endregion
    105134
    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)
    107139                {
    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();
    109150                }
    110151
    111152                private void DSplash_Load(object sender, System.EventArgs e)
    112153                {
    113                         //this.lblVersion.Text = "Version " + Application.ProductVersion;
     154                        this.lblVersion.Text = "Version " + Application.ProductVersion;
    114155                }
    115156
    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        }
    132168        }
     169
     170
     171   
    133172}
Note: See TracChangeset for help on using the changeset viewer.