At this moment i am trying to get a double value from textbox like this:
String.IsNullOrEmpty(textBox1.Text) ? 0.0 : Double.Parse(textBox1.Text)
double val; if(!double.TryParse(textBox.Text,out val)) val = 0.0