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); }
public SingleRule(int number, SpawnOrSurviveRule ruleType) { Number = number; RuleType = ruleType; }