Exemple #1
0
 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);
 }
Exemple #2
0
 public static void RemovePattern(xRandomerPattern pattern, ref xRandomer m)
 {
     m.Patterns.Remove(pattern);
     m.listPatterns.Items.Remove(pattern.Name);
     SavePatterns(ref m);
 }