Ejemplo n.º 1
0
        public Control getView(List <string> kpArr)
        {
            if (kpArr.Count == 1 && kpArr.ElementAt(0).Contains("MasterConfiguration_"))
            {
                refreshList(); return(ucmc);
            }

            kpArr.RemoveAt(0);

            //Namrata: 10/05/2017
            if (kpArr.ElementAt(0).Contains("ADRGroup_"))
            {
                if (adrgroup == null)
                {
                    return(null);
                }
                return(adrgroup.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("IEC101Group_"))
            {
                if (iec101Grp == null)
                {
                    return(null);
                }
                return(iec101Grp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("IEC103Group_"))
            {
                if (iec103Grp == null)
                {
                    return(null);
                }
                return(iec103Grp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("MODBUSGroup_"))
            {
                if (mbGrp == null)
                {
                    return(null);
                }
                return(mbGrp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("IEC61850ClientGroup_"))// 61850Group_
            {
                if (server61850 == null)
                {
                    return(null);
                }
                return(server61850.getView(kpArr));
            }
            //Namrata:17/05/2018
            else if (kpArr.ElementAt(0).Contains("IEC104MasterGroup_"))
            {
                if (iec104Grp == null)
                {
                    return(null);
                }
                return(iec104Grp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("SPORTGroup_"))// 61850Group_
            {
                if (Sport == null)
                {
                    return(null);
                }
                return(Sport.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("PLUGroup_"))// 61850Group_
            {
                if (plugroup == null)
                {
                    return(null);
                }
                return(plugroup.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("VirtualGroup_"))
            {
                if (vGrp == null)
                {
                    return(null);
                }
                return(vGrp.getView(kpArr));
            }
            //Ajay: 31/07/2018
            else if (kpArr.ElementAt(0).Contains("LoadProfileGroup_"))
            {
                if (LoadProfileGrp == null)
                {
                    return(null);
                }
                return(LoadProfileGrp.getView(kpArr));
            }
            return(null);
        }
        public Control getView(List <string> kpArr)
        {
            if (kpArr.Count == 1 && kpArr.ElementAt(0).Contains("MasterConfiguration_"))
            {
                refreshList(); return(ucmc);
            }

            kpArr.RemoveAt(0);
            //Namarta: 10 / 5 / 2017
            if (kpArr.ElementAt(0).Contains("ADRGroup_"))
            {
                if (adrgroup == null)
                {
                    return(null);
                }
                return(adrgroup.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("IEC101Group_"))
            {
                if (iec101Grp == null)
                {
                    return(null);
                }
                return(iec101Grp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("IEC103Group_"))
            {
                if (iecGrp == null)
                {
                    return(null);
                }
                return(iecGrp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("MODBUSGroup_"))
            {
                if (mbGrp == null)
                {
                    return(null);
                }
                return(mbGrp.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("IEC61850ClientGroup_"))// 61850Group_
            {
                if (server61850 == null)
                {
                    return(null);
                }
                return(server61850.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("PLUGroup_"))// 61850Group_
            {
                if (plugroup == null)
                {
                    return(null);
                }
                return(plugroup.getView(kpArr));
            }
            else if (kpArr.ElementAt(0).Contains("VirtualGroup_"))
            {
                if (vGrp == null)
                {
                    return(null);
                }
                return(vGrp.getView(kpArr));
            }
            return(null);
        }