Esempio n. 1
0
		private void CalcButton_Click(object sender, RoutedEventArgs e)
		{
			var duration = new TourLib.Duration();
			double result = duration.CalculateTourDuration(numberOfStops: 2,
																								     speedRatio: 1.2);
			DurationMessage.Text = String.Format("{0} minutes", result;
		}
Esempio n. 2
0
        partial void CalcButton_TouchUpInside(UIButton sender)
        {
            var    duration = new TourLib.Duration();
            double result   = duration.CalculateTourDuration(numberOfStops: 2,
                                                             speedRatio: 1.2);

            DurationMessage.Text = String.Format("{0} minutes", result);
        }
Esempio n. 3
0
        partial void CalcTourDurationButton_TouchUpInside(UIButton sender)
        {
            var    numberOfStops = TableView1.NumberOfRowsInSection(0);
            var    duration      = new TourLib.Duration();
            double result        = duration.CalculateTourDuration(numberOfStops: (int)numberOfStops, speedRatio: 1.2);

            displayDurationLabel.Text = String.Format("{0} minutes", result);
        }