private void Button_del(object sender, RoutedEventArgs e) { int sim = Tb.Text.Length - 1; string text = Tb.Text; Tb.Clear(); for (int q = 0; q < sim; q++) { Tb.Text = Tb.Text + text[q]; } }
private void Button_division(object sender, RoutedEventArgs e) { if (Tb.Text == "") { return; } else if (x != 0) { Col(); la.Content = y.ToString() + "/"; Tb.Clear(); x = y; action = 4; } else { x = float.Parse(Tb.Text); Tb.Clear(); action = 4; la.Content = x.ToString() + "/"; } }