private void btn_Click(object sender, RoutedEventArgs e) { Lamp l = (Lamp)sender; Shoot(l.Row, l.Col); }