Example #1
0
        private void CheckBox_Checked(object sender, RoutedEventArgs e, SpawnOrSurviveRule rule, bool Checked)
        {
            CheckBox checkbox = (CheckBox)sender;
            int      value    = Int32.Parse(checkbox.Content.ToString());

            SingleRule newRule = new SingleRule(value, rule);

            associatedGrid.ProcessRuleChange(newRule, Checked);
        }
Example #2
0
 public SingleRule(int number, SpawnOrSurviveRule ruleType)
 {
     Number   = number;
     RuleType = ruleType;
 }