Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. private void Zaehnezahl_TextChanged(object sender, TextChangedEventArgs e)
  2. {
  3. double a = 0;
  4. double b = 0;
  5. double c = 0;
  6. double d = 0;
  7.  
  8.  
  9. if (Double.TryParse(Modul.Text, out a) && Double.TryParse(Zaehnezahl.Text, out b) && Double.TryParse(Schraegungswinkel.Text, out c))
  10.  
  11. d = (a * b) / (System.Math.Cos(c * (Math.PI / 180)));
  12.  
  13. TextBox t = new TextBox();
  14. t.Text = d;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement