2 using System.Collections.Generic;
 
    3 using System.ComponentModel;
 
    8 using System.Windows.Forms;
 
   10 namespace SeciUserInterface.Forms
 
   20             InitializeComponent();
 
   28             if (type == Seci.Definitions.ControlType.STRING || type == Seci.Definitions.ControlType.BOOLEAN)
 
   30                 lblLower.Text = 
"Value: ";
 
   31                 lblUpper.Visible = 
false;
 
   32                 txtUpper.Visible = 
false;
 
   33                 txtName.Text = 
"Block Name: " + _block.BlockName;
 
   34                 txtLower.Text = _block.RunControlValue;
 
   36                 chkUnderRC.Checked = _block.UnderRunControl;
 
   40                 txtName.Text = 
"Block Name: " + _block.BlockName;
 
   41                 txtLower.Text = _block.LowerLimit.ToString();
 
   42                 txtUpper.Text = _block.UpperLimit.ToString();
 
   43                 chkUnderRC.Checked = _block.UnderRunControl;
 
   54              if (type == Seci.Definitions.ControlType.STRING || type == Seci.Definitions.ControlType.BOOLEAN)
 
   56                  if (!String.IsNullOrEmpty(txtLower.Text))
 
   58                      _block.SetRunControlLimits(chkUnderRC.Checked, txtLower.Text);
 
   60                  else if (chkUnderRC.Checked)
 
   62                      MessageBox.Show(
"Please enter a value for run-control", 
"Invalid Value", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
   71                      lower = Convert.ToDouble(txtLower.Text);
 
   75                      MessageBox.Show(
"Invalid value entered for lower limit", 
"Invalid Value", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
   81                      upper = Convert.ToDouble(txtUpper.Text);
 
   85                      MessageBox.Show(
"Invalid value entered for upper limit", 
"Invalid Value", MessageBoxButtons.OK, MessageBoxIcon.Error);
 
   89                  _block.SetRunControlLimits(chkUnderRC.Checked, lower, upper);
 
   92             DialogResult = DialogResult.OK;
 
This class is used for storing the information for any blocks that are created and provides methods f...