private void OperationButton(object sender, RoutedEventArgs e) { switch (((Button)sender).Content) { case "=": logic.ResultOperation(); break; case "AC": logic.ClearOperation(); break; case "+/-": logic.Negation(); break; } }