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

            try
            {
                IEC101Master m101 = m101List.ElementAt(editIndex);
                if (m101 != null)
                {
                    ucm101.txtMasterNo.Text          = m101.MasterNum;
                    ucm101.cmbPortNo.SelectedIndex   = ucm101.cmbPortNo.FindStringExact(m101.PortNum);
                    ucm101.cmbDebug.SelectedIndex    = ucm101.cmbDebug.FindStringExact(m101.DEBUG);
                    ucm101.txtGiTime.Text            = m101.GiTime;
                    ucm101.txtClockSyncInterval.Text = m101.ClockSyncInterval;
                    ucm101.txtRefreshInterval.Text   = m101.RefreshInterval;
                    ucm101.txtFirmwareVersion.Text   = m101.AppFirmwareVersion;
                    if (m101.Run.ToLower() == "yes")
                    {
                        ucm101.chkRun.Checked = true;
                    }
                    else
                    {
                        ucm101.chkRun.Checked = false;
                    }
                    ucm101.txtDescription.Text = m101.Description;
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + Ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        private void loadValues()
        {
            IEC101Master m101 = m101List.ElementAt(editIndex);

            if (m101 != null)
            {
                ucm101.txtMasterNo.Text          = m101.MasterNum;
                ucm101.cmbPortNo.SelectedIndex   = ucm101.cmbPortNo.FindStringExact(m101.PortNum);
                ucm101.cmbDebug.SelectedIndex    = ucm101.cmbDebug.FindStringExact(m101.DEBUG);
                ucm101.txtGiTime.Text            = m101.GiTime;
                ucm101.txtClockSyncInterval.Text = m101.ClockSyncInterval;
                ucm101.txtRefreshInterval.Text   = m101.RefreshInterval;
                ucm101.txtFirmwareVersion.Text   = m101.AppFirmwareVersion;
                if (m101.Run.ToLower() == "yes")
                {
                    ucm101.chkRun.Checked = true;
                }
                else
                {
                    ucm101.chkRun.Checked = false;
                }
                ucm101.txtDescription.Text = m101.Description;
            }
        }