📄 frmhistoryalmdataquery.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace SmartE1Analyzer
{
/// <summary>
/// frmHistoryAlmDataQuery 的摘要说明。
/// </summary>
public class frmHistoryAlmDataQuery : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListView listViewData;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnQuery;
private frmMain m_ParentFrm;
public frmHistoryAlmDataQuery(frmMain frm)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
this.m_ParentFrm = frm;
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.listViewData = new System.Windows.Forms.ListView();
this.btnCancel = new System.Windows.Forms.Button();
this.btnQuery = new System.Windows.Forms.Button();
//
// label1
//
this.label1.Location = new System.Drawing.Point(20, 11);
this.label1.Size = new System.Drawing.Size(168, 16);
this.label1.Text = "历史告警数据查询:";
//
// listViewData
//
this.listViewData.Location = new System.Drawing.Point(20, 32);
this.listViewData.Size = new System.Drawing.Size(204, 192);
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(148, 232);
this.btnCancel.Size = new System.Drawing.Size(72, 24);
this.btnCancel.Text = "取消[&C]";
//
// btnQuery
//
this.btnQuery.Location = new System.Drawing.Point(68, 232);
this.btnQuery.Size = new System.Drawing.Size(72, 24);
this.btnQuery.Text = "查询[&Q]";
//
// frmHistoryAlmDataQuery
//
this.Controls.Add(this.label1);
this.Controls.Add(this.listViewData);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnQuery);
this.Text = "frmHistoryAlmDataQuery";
this.Load += new System.EventHandler(this.frmHistoryAlmDataQuery_Load);
}
#endregion
private void frmHistoryAlmDataQuery_Load(object sender, System.EventArgs e)
{
Rectangle screen = Screen.PrimaryScreen.Bounds;
this.Location = new Point((screen.Width - this.Width) / 2,
(screen.Height - this.Height ) / 2);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -