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 { /* *类名称:E_AlarmSettingForm *创建人:韩荣伟 *创建时间:2010-10-30 *功能描述:电力告警参数窗口类 */ public partial class E_AlarmSettingForm : Form { public TextBox[] arrTextBox = new TextBox[8]; public string sMID; /* *方法名称:E_AlarmSettingForm *创建人:韩荣伟 *创建时间:2010-10-30 *参数描述:void *返回描述:void *功能描述:构造函数,更新textbox数组 */ public E_AlarmSettingForm() { InitializeComponent(); arrTextBox[0] = tbThresholdILL; arrTextBox[1] = tbThresholdIL; arrTextBox[2] = tbThresholdIU; arrTextBox[3] = tbThresholdIUU; arrTextBox[4] = tbThresholdULL; arrTextBox[5] = tbThresholdUL; arrTextBox[6] = tbThresholdUU; arrTextBox[7] = tbThresholdUUU; } /* *方法名称:E_AlarmSettingForm_Shown *创建人:韩荣伟 *创建时间:2010-10-30 *参数描述:object sender 事件发出对象, EventArgs e 显示事件参数 *返回描述:void *功能描述:窗口显示事件函数,更新仪表ID */ private void E_AlarmSettingForm_Shown(object sender, EventArgs e) { tbMeterNo.Text = sMID; } } }