using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ClientTest { /* *类名称:AlarmSettingForm *创建人:韩荣伟 *创建时间:2010-10-30 *功能描述:蒸汽告警参数窗口类 */ public partial class AlarmSettingForm : Form { public TextBox[] arrTextBox = new TextBox[16]; public string sMID; private int nFormHeight; /* *方法名称:AlarmSettingForm *创建人:韩荣伟 *创建时间:2010-10-30 *参数描述:void *返回描述:void *功能描述:构造函数,更新textbox数组 */ public AlarmSettingForm() { InitializeComponent(); arrTextBox[0] = tbThresholdPLL; arrTextBox[1] = tbThresholdPL; arrTextBox[2] = tbThresholdPU; arrTextBox[3] = tbThresholdPUU; arrTextBox[4] = tbThresholdTLL; arrTextBox[5] = tbThresholdTL; arrTextBox[6] = tbThresholdTU; arrTextBox[7] = tbThresholdTUU; arrTextBox[8] = tbThresholdFLL; arrTextBox[9] = tbThresholdFL; arrTextBox[10] = tbThresholdFU; arrTextBox[11] = tbThresholdFUU; arrTextBox[12] = tbThresholdHLL; arrTextBox[13] = tbThresholdHL; arrTextBox[14] = tbThresholdHU; arrTextBox[15] = tbThresholdHUU; } /* *方法名称:AlarmSettingForm_Load *创建人:韩荣伟 *创建时间:2010-10-30 *参数描述:object sender 事件发出对象, EventArgs e load事件参数 *返回描述:void *功能描述:窗口加载事件函数,初始化 */ private void AlarmSettingForm_Load(object sender, EventArgs e) { nFormHeight = this.Height; //this.Height = 120; } /* *方法名称:AlarmSettingForm_Shown *创建人:韩荣伟 *创建时间:2010-10-30 *参数描述:object sender 事件发出对象, EventArgs e 显示事件参数 *返回描述:void *功能描述:窗口显示事件函数,更新仪表ID */ private void AlarmSettingForm_Shown(object sender, EventArgs e) { tbMID.Text = sMID; } } }