示例#1
0
 private void Button_Click_4(object sender, RoutedEventArgs e)
 {
     try
     {
         Lb0.Content = double.Parse(Tx1.Text) * double.Parse(Tx2.Text);
     }
     catch (FormatException)
     {
         MessageBox.Show("Иди за учебником математики,неуч");
         Tx2.Clear();
         Tx1.Clear();
         Lb0.Content = "0";
     }
 }
示例#2
0
 private void btnStep_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Lb0.Content = Math.Pow(Convert.ToDouble(Tx1.Text), Convert.ToDouble(Tx2.Text));
     }
     catch (FormatException)
     {
         MessageBox.Show("Иди за учебником математики,неуч");
         Tx2.Clear();
         Tx1.Clear();
         Lb0.Content = "0";
     }
 }
示例#3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     Tx2.Clear();
     Tx1.Clear();
     Lb0.Content = "0";
 }