public ShipGroupData Add() { int key = GetUniqueID(); var group = new ShipGroupData(key); ShipGroups.Add(group); return(group); }
public ShipGroupData Add() { int key = ShipGroups.Count > 0 ? ShipGroups.Keys.Max() + 1 : 1; var group = new ShipGroupData(key); ShipGroups.Add(group); return(group); }