private void AddCalibrationPoint(object sender, RoutedEventArgs e) { Button button = sender as Button; Calibration.AddPointAfter((CalibrationPointDouble)button.Tag); }