# Mini Blend Calculator

**URL:** <https://forum.kirupa.com/t/mini-blend-calculator/249710>\
**Category:** programming\
**Created:** [January 21, 2008, 10:45pm UTC](https://forum.kirupa.com/t/mini-blend-calculator/249710 "2008-01-21T22:45:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigahertz205](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@gigahertz205](https://forum.kirupa.com/u/gigahertz205)\
**Post date:** [January 21, 2008, 10:45pm UTC](https://forum.kirupa.com/t/mini-blend-calculator/249710/1 "2008-01-21T22:45:44Z")

</div>

Well, Im trying to create a four function calculator with blend, but its kinda hard without a reference, so ill ask here.

This is how it looks like.  
 ![](http://forum.kirupa.com/uploads/kirupa/4247/98abde095d2721c8.png)  
The little box at the right end is a label that displays the number.

So im trying to use one event, which comes from the “calculate” button. Here is the event code just for the addition.

```auto
        private void click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (RadioButton.Content == "Addition")
            {
                DiaplayNumber.Content = double.Parse(FirstNumber.Text) + double.Parse(SecondNumber.Text);                
            }
        }

```

Thats my crack at it… it obviously doesn’t work. Any help?
