Ejemplo n.º 1
0
        private void loadValues()
        {
            string strRoutineName = "loadValues";

            try
            {
                CLA cla = claList.ElementAt(editIndex);
                if (cla != null)
                {
                    uccla.txtCLAIndex.Text = cla.CLAIndex;
                    uccla.txtAINo1.Text    = cla.AINo1;
                    uccla.txtAINo2.Text    = cla.AINo2;
                    uccla.txtDONo.Text     = cla.DONo;
                    uccla.txtHigh.Text     = cla.High;
                    uccla.txtLow.Text      = cla.Low;
                    uccla.txtDelay.Text    = cla.DelaySec;
                    //Ajay: 03/01/2019
                    uccla.txtbxDINo.Text = cla.DINo;
                    if (cla.OperateOn != null)
                    {
                        uccla.cmbOperateOn.SelectedIndex = uccla.cmbOperateOn.Items.IndexOf(cla.OperateOn);
                    }
                    else
                    {
                        uccla.cmbOperateOn.SelectedIndex = -1;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        private void loadValues()
        {
            string strRoutineName = "loadValues";

            try
            {
                CLA cla = claList.ElementAt(editIndex);
                if (cla != null)
                {
                    uccla.txtCLAIndex.Text = cla.CLAIndex;
                    uccla.txtAINo1.Text    = cla.AINo1;
                    uccla.txtAINo2.Text    = cla.AINo2;
                    uccla.txtDONo.Text     = cla.DONo;
                    uccla.txtHigh.Text     = cla.High;
                    uccla.txtLow.Text      = cla.Low;
                    uccla.txtDelay.Text    = cla.DelaySec;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }