示例#1
0
        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();
     }
 }
示例#3
0
        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;
        }
示例#4
0
        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);
            }
        }
示例#5
0
 private void button8_Click(object sender, EventArgs e)
 {
     Tb1.Clear();
 }
示例#6
0
 private void Button_Click13(object sender, RoutedEventArgs e) // C
 {
     Tb1.Clear();
 }