private void rb_permutation_CheckedChanged(object sender, EventArgs e) { if (rb_permutation.Checked && !(counter is Permutation)) { counter = new Permutation(); } }
private void rb_combinations_CheckedChanged(object sender, EventArgs e) { if (rb_combinations.Checked && !(counter is Combination)) { counter = new Combination(); } }
public Form1() { InitializeComponent(); counter = new Permutation(); }