public static void AddPattern(xRandomerPattern pattern, ref xRandomer m) { if (m.Patterns.Contains(pattern)) { return; } m.Patterns.Add(pattern); m.listPatterns.Items.Add(pattern.Name); SavePatterns(ref m); }
public static void RemovePattern(xRandomerPattern pattern, ref xRandomer m) { m.Patterns.Remove(pattern); m.listPatterns.Items.Remove(pattern.Name); SavePatterns(ref m); }