public MasterConfiguration(Dictionary <string, TreeNode> treeDicts) { string strRoutineName = "MasterConfiguration"; try { foreach (KeyValuePair <string, TreeNode> mckp in treeDicts) { if (mckp.Key == "ADRGroup") { adrgroup = new ADRGroup(treeDicts["ADRGroup"]); } //Namrata:6/7/2017 if (mckp.Key == "IEC101Group") { iec101Grp = new IEC101Group(treeDicts["IEC101Group"]); } if (mckp.Key == "IEC103Group") { iecGrp = new IEC103Group(treeDicts["IEC103Group"]); } else if (mckp.Key == "MODBUSGroup") { mbGrp = new MODBUSGroup(treeDicts["MODBUSGroup"]); } else if (mckp.Key == "IEC61850ClientGroup") //61850Group { server61850 = new IEC61850ServerGroup(treeDicts["IEC61850ClientGroup"]); //61850Group } //Namrata:25/10/2017 else if (mckp.Key == "PLUGroup") //61850Group { plugroup = new PLUGroup(treeDicts["PLUGroup"]); //61850Group } else if (mckp.Key == "VirtualGroup") { vGrp = new VirtualGroup(treeDicts["VirtualGroup"]); } else { Console.WriteLine("***** MasterConfiguration: Node '{0}' not supported!!!", mckp.Key); } } addListHeaders(); refreshList(); } catch (Exception ex) { MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); } }