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

            try
            {
                ucmb.cmbDebug.Items.Clear(); //Fill Debug levels...
                for (int i = 1; i <= Globals.MAX_DEBUG_LEVEL; i++)
                {
                    ucmb.cmbDebug.Items.Add(i.ToString());
                }
                ucmb.cmbDebug.SelectedIndex = 0;
                //Namrata: 10/10/2017
                ucmb.cmbEdition.Items.Clear(); //Fill Edition Type's...
                foreach (String pt in IEC61850ServerMaster.getEditionTypes())
                {
                    ucmb.cmbEdition.Items.Add(pt.ToString());
                }
                ucmb.cmbEdition.SelectedIndex = 0;
            }
            catch (Exception Ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + Ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        private void loadValues()
        {
            IEC61850ServerMaster mbm = mbList.ElementAt(editIndex);

            if (mbm != null)
            {
                ucmb.txtMasterNo.Text          = mbm.MasterNum;
                ucmb.cmbEdition.SelectedIndex  = ucmb.cmbEdition.FindStringExact(mbm.Edition);
                ucmb.cmbPortNo.SelectedIndex   = ucmb.cmbPortNo.FindStringExact(mbm.PortNum);
                ucmb.txtClockSyncInterval.Text = mbm.PortTimesyncSec;
                ucmb.txtPollingInterval.Text   = mbm.PollingIntervalmSec;
                ucmb.txtRefreshInterval.Text   = mbm.RefreshInterval;
                ucmb.cmbDebug.SelectedIndex    = ucmb.cmbDebug.FindStringExact(mbm.DEBUG);
                ucmb.txtFirmwareVersion.Text   = mbm.AppFirmwareVersion;
                ucmb.cmbEdition.SelectedIndex  = ucmb.cmbEdition.FindStringExact(mbm.Edition);
                if (mbm.Run.ToLower() == "yes")
                {
                    ucmb.chkRun.Checked = true;
                }
                else
                {
                    ucmb.chkRun.Checked = false;
                }
                ucmb.txtDescription.Text = mbm.Description;
            }
        }
Ejemplo n.º 3
0
        private void loadValues()
        {
            string strRoutineName = "IEC61850ServerGroup:loadValues";

            try
            {
                IEC61850ServerMaster mbm = mbList.ElementAt(editIndex);
                if (mbm != null)
                {
                    ucmb.txtMasterNo.Text          = mbm.MasterNum;
                    ucmb.cmbEdition.SelectedIndex  = ucmb.cmbEdition.FindStringExact(mbm.Edition);
                    ucmb.cmbPortNo.SelectedIndex   = ucmb.cmbPortNo.FindStringExact(mbm.PortNum);
                    ucmb.txtClockSyncInterval.Text = mbm.PortTimesyncSec;
                    ucmb.txtPollingInterval.Text   = mbm.PollingIntervalmSec;
                    ucmb.txtRefreshInterval.Text   = mbm.RefreshInterval;
                    ucmb.cmbDebug.SelectedIndex    = ucmb.cmbDebug.FindStringExact(mbm.DEBUG);
                    ucmb.txtFirmwareVersion.Text   = mbm.AppFirmwareVersion;
                    ucmb.cmbEdition.SelectedIndex  = ucmb.cmbEdition.FindStringExact(mbm.Edition);
                    if (mbm.Run.ToLower() == "yes")
                    {
                        ucmb.chkRun.Checked = true;
                    }
                    else
                    {
                        ucmb.chkRun.Checked = false;
                    }
                    ucmb.txtDescription.Text = mbm.Description;
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + Ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 4
0
        private void fillOptions()
        {
            //Fill Debug levels...
            ucmb.cmbDebug.Items.Clear();
            for (int i = 1; i <= Globals.MAX_DEBUG_LEVEL; i++)
            {
                ucmb.cmbDebug.Items.Add(i.ToString());
            }
            ucmb.cmbDebug.SelectedIndex = 0;

            //Fill Edition Type's...
            //Namrata: 10/10/2017
            ucmb.cmbEdition.Items.Clear();
            foreach (String pt in IEC61850ServerMaster.getEditionTypes())
            {
                ucmb.cmbEdition.Items.Add(pt.ToString());
            }
            ucmb.cmbEdition.SelectedIndex = 0;
        }