private void Button_Click(object sender, RoutedEventArgs e) { string text = this.Valuem.Text; int a = Convert.ToInt32(text); string c = Numeral.ToString(a); this.ValueRes.Content = c; }
private void button2_Click(object sender, RoutedEventArgs e) { string text = this.value2.Text; int a = Numeral.ToInt(text); if (a != 0) { string d = Numeral.ToString(a); this.result2d.Content = d; } this.ValueRes.Content = a; }