private void Button_Komma_Click(object sender, RoutedEventArgs e)
 {
     if (!Decimal_Input)
     {
         Button_Is.Focus();
         InsertNumber(",");
         Decimal_Input = true;
     }
 }
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if ((e.Key == Key.Decimal) || (e.Key == Key.OemComma))
            {
                if (!Decimal_Input)
                {
                    Button_Is.Focus();
                    InsertNumber(",");
                    Decimal_Input = true;
                }
            }

            switch (e.Key)
            {
            case Key.D0:
            case Key.NumPad0:
                Button_Is.Focus();
                InsertNumber("0");
                break;

            case Key.D1:
            case Key.NumPad1:
                Button_Is.Focus();
                InsertNumber("1");
                break;

            case Key.D2:
            case Key.NumPad2:
                Button_Is.Focus();
                InsertNumber("2");
                break;

            case Key.D3:
            case Key.NumPad3:
                Button_Is.Focus();
                InsertNumber("3");
                break;

            case Key.D4:
            case Key.NumPad4:
                Button_Is.Focus();
                InsertNumber("4");
                break;

            case Key.D5:
            case Key.NumPad5:
                Button_Is.Focus();
                InsertNumber("5");
                break;

            case Key.D6:
            case Key.NumPad6:
                Button_Is.Focus();
                InsertNumber("6");
                break;

            case Key.D7:
            case Key.NumPad7:
                Button_Is.Focus();
                InsertNumber("7");
                break;

            case Key.D8:
            case Key.NumPad8:
                Button_Is.Focus();
                InsertNumber("8");
                break;

            case Key.D9:
            case Key.NumPad9:
                Button_Is.Focus();
                InsertNumber("9");
                break;

            case Key.Add:
                Calculation("+");
                break;

            case Key.Subtract:
                Calculation("-");
                break;

            case Key.Multiply:
                Calculation("x");
                break;

            case Key.Divide:
                Calculation("÷");
                break;
            }
        }