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!"; } }
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!"; } }