private void Action_Click(object sender, RoutedEventArgs e) { Error(); Button btn = (Button)sender; Logic.DoMath(input, memory, btn.Content.ToString().First(), ref error, ref read, ref last); Logic.Resize(input); }