示例#1
0
 public ISimulationGroup CreateGroup(int id, string name, NetworkStyle ns, NetWorkType type)
 {
     ISimulationGroup group = new SimulationGroup(id);
     group.Name = name;
     group.NetworkType = type;
     group.Style = ns;   
  
     return group;
 }
示例#2
0
 public void UpdateSytle(int id, NetworkStyle ns)
 {
     ISimulationGroup group = this.GetGroup(id);
     if (group != null)
     {
         foreach (KeyValuePair<NetWorkType, List<StyleStruct>> pair in ns.StyleDic)
         {
             group.Style.StyleDic.Remove(pair.Key);
             group.Style.StyleDic.Add(pair.Key, pair.Value);
         }
         this.InvokeEventHandler(this.GroupStylesChanged, group);
         this.SetNeedPromptSave();
     }
 }