private void TakeButton_Click(object sender, RoutedEventArgs e) { try { decimal d1 = Decimal.Parse(this.SumBox.Text); current.TakeSum(d1); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { this.SumBox.Text = ""; } }