private void radioButton_Click(object sender, RoutedEventArgs e)
 {
     strategy = instances[((RadioButton)sender).Name];
 }
 public MainWindow()
 {
     InitializeComponent();
     strategy = instances["arrayRd"];
     changeButtonStatus(true);
 }