public void regenerateENSequence()
        {
            string strRoutineName = "regenerateENSequence";

            try
            {
                //Reset EN no.
                Globals.resetUniqueNos(ResetUniqueNos.EN);
                Globals.ENNo++; //Start from 1...
                                //Globals.ENIndex++;//Start from 1...
                                //Globals.ENReportingIndex++;//Start from 1...
                                //Handle IEC101 masters...
                iec101Grp.regenerateENSequence();
                //Handle IEC103 masters...
                iecGrp.regenerateENSequence();
                //Handle MODBUS masters...
                mbGrp.regenerateENSequence();
                server61850.regenerateENSequence();
                //Handle Virtual masters...
                vGrp.regenerateENSequence();
                //Namrata:31/5/2017
                //Handle ADR masters...
                adrgroup.regenerateENSequence();
            }
            catch (Exception ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #2
0
        public void regenerateENSequence()
        {
            string strRoutineName = "regenerateENSequence";

            try
            {
                Globals.resetUniqueNos(ResetUniqueNos.EN);
                Globals.ENNo++;
                adrgroup.regenerateENSequence();
                iec101Grp.regenerateENSequence();
                iec103Grp.regenerateENSequence();
                mbGrp.regenerateENSequence();
                server61850.regenerateENSequence();
                iec104Grp.regenerateENSequence();
                Sport.regenerateENSequence();
                vGrp.regenerateENSequence();
                LoadProfileGrp.regenerateENSequence();
            }
            catch (Exception ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }