void CalculateBottomStraddleButton_Clicked (object sender, EventArgs e)
		{
			if (bottomStraddleEntry.Text != null) {
				BottomStraddle bs = new BottomStraddle (Double.Parse (bottomStraddleEntry.Text));
				Navigation.PushAsync (new BottomStraddleChartPage (bs.Payoff));
				nullCheckLabel.Text = null;
			} else {
				nullCheckLabel.Text = "Don't forget to enter a value!";
			}
		}
示例#2
0
 void CalculateBottomStraddleButton_Clicked(object sender, EventArgs e)
 {
     if (bottomStraddleEntry.Text != null)
     {
         BottomStraddle bs = new BottomStraddle(Double.Parse(bottomStraddleEntry.Text));
         Navigation.PushAsync(new BottomStraddleChartPage(bs.Payoff));
         nullCheckLabel.Text = null;
     }
     else
     {
         nullCheckLabel.Text = "Don't forget to enter a value!";
     }
 }