public PatternList this[int index] { get { return (PatternList) mGroups[index]; } set { mGroups[index] = value; } }