private void Button_Click_Clear(object sender, RoutedEventArgs e) { Tb1.Clear(); Tb2.Clear(); helper Clear = new helper(Tb1.Text, Tb2.Text); answ.Content = Clear.GetClear(); }
private void Tb1_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { //Aufgaben.Add(Tb1.Text); //Lv1.Items.Refresh(); AddTodoItem(Tb1.Text); Tb1.Clear(); } }
private void Button_Click(object sender, EventArgs e) { if (( Tb1.Text == "0") || (click)) { Tb1.Clear(); } click = false; Button b = (Button)sender; Tb1.Text = Tb1.Text + b.Text; }
private void Button_Click15(object sender, EventArgs e) // -+*/ { try { a = Convert.ToDouble(Tb1.Text); //переводим в double mark = (sender as Button).Content.ToString(); Tb1.Clear(); } catch { MessageBox.Show("Invalid operation", "Error", MessageBoxButton.OK, MessageBoxImage.Exclamation); } }
private void button8_Click(object sender, EventArgs e) { Tb1.Clear(); }
private void Button_Click13(object sender, RoutedEventArgs e) // C { Tb1.Clear(); }