Пример #1
0
 /// <summary>
 /// Adds information about a network to the table
 /// </summary>
 /// <param name="n">Information about network</param>
 public static void AddNetwork(NetworkType n)
 {
     if (!theListTable.ContainsKey(n.Name))
     {
         theListTable.Add(n.Name, new List<string>());
     }
     for (int i = 0; i < n.Count(); i++)
         if (!theListTable[n.Name].Contains(n[i]))
         {
             if (!DecisionMakerType.IsExistingDM(n[i])) throw new ApplicationException("Network " + n.Name + " contains unknown Decision Maker " + n[i]);
             AddMember(n.Name, n[i]);
         }
 }