private void Button_Click_Test1(object sender, RoutedEventArgs e) { var b = (Button)sender; int test = int.Parse((string)b.Tag); map.RunTest(test); }