141 lines
3.5 KiB
C#
141 lines
3.5 KiB
C#
/*********************************************************************************************
|
|
* Copyright 2002 - Volian Enterprises, Inc. All rights reserved.
|
|
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
|
* ------------------------------------------------------------------------------
|
|
* $Workfile: StatusMessageFrm.cs $ $Revision: 3 $
|
|
* $Author: Jsj $ $Date: 5/11/04 9:30a $
|
|
*
|
|
* $History: StatusMessageFrm.cs $
|
|
*
|
|
* ***************** Version 3 *****************
|
|
* User: Jsj Date: 5/11/04 Time: 9:30a
|
|
* Updated in $/LibSource/VlnStatus
|
|
*
|
|
* ***************** Version 2 *****************
|
|
* User: Jsj Date: 11/26/02 Time: 3:38p
|
|
* Updated in $/LibSource/VlnStatus
|
|
* Added overbounds check
|
|
*********************************************************************************************/
|
|
|
|
using System;
|
|
using System.Drawing;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
|
|
namespace VlnStatus
|
|
{
|
|
/// <summary>
|
|
/// Create status message window.
|
|
/// </summary>
|
|
public class StatusMessageFrm : System.Windows.Forms.Form
|
|
{
|
|
private System.Windows.Forms.Label lblStatMsg;
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.Container components = null;
|
|
|
|
public StatusMessageFrm()
|
|
{
|
|
//
|
|
// Required for Windows Form Designer support
|
|
//
|
|
InitializeComponent();
|
|
}
|
|
|
|
public StatusMessageFrm(string StatTitle)
|
|
{
|
|
//
|
|
// Required for Windows Form Designer support
|
|
//
|
|
InitializeComponent();
|
|
|
|
Text = StatTitle;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
protected override void Dispose( bool disposing )
|
|
{
|
|
if( disposing )
|
|
{
|
|
if(components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
}
|
|
base.Dispose( disposing );
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.lblStatMsg = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// lblStatMsg
|
|
//
|
|
this.lblStatMsg.Location = new System.Drawing.Point(19, 20);
|
|
this.lblStatMsg.Name = "lblStatMsg";
|
|
this.lblStatMsg.Size = new System.Drawing.Size(420, 81);
|
|
this.lblStatMsg.TabIndex = 0;
|
|
this.lblStatMsg.Text = "Put Status Message Here";
|
|
this.lblStatMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// StatusMessageFrm
|
|
//
|
|
this.AutoScaleBaseSize = new System.Drawing.Size(7, 19);
|
|
this.ClientSize = new System.Drawing.Size(457, 117);
|
|
this.ControlBox = false;
|
|
this.Controls.Add(this.lblStatMsg);
|
|
this.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "StatusMessageFrm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Status";
|
|
this.TopMost = true;
|
|
this.Load += new System.EventHandler(this.StatusMessageFrm_Load);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
#endregion
|
|
|
|
private void StatusMessageFrm_Load(object sender, System.EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public string StatusMessage
|
|
{
|
|
get
|
|
{
|
|
return lblStatMsg.Text;
|
|
}
|
|
set
|
|
{
|
|
lblStatMsg.Text = value;
|
|
lblStatMsg.Refresh();
|
|
}
|
|
}
|
|
|
|
public string StatusBoxTitle
|
|
{
|
|
get
|
|
{
|
|
return Text;
|
|
}
|
|
set
|
|
{
|
|
Text = value;
|
|
}
|
|
}
|
|
}
|
|
}
|