internal void UpdateCell(int index, int i, RaceResultClass r, ContactClass c)
 {
     positionLabel.Text = index.ToString();
     memberIDLabel.Text = c.ContactID.ToString();
     nameLabel.Text     = c.FirstName + " " + c.LastName;
     timeLabel.Text     = r.raceTimings[i];
     dateLabel.Text     = r.date.ToShortDateString();
 }
 void filterSeries()
 {
     filteredResult = AppData.offlineRaceResultList.Find
                          (x => x.date.Year.ToString() == (alertController2.TextFields[0].Text));
     if (filteredResult != null)
     {
         this.PerformSegue("viewSeriesSegue", this);
     }
     else
     {
         UIAlertController alertController;
         alertController = UIAlertController.Create("Series record not found.", null, UIAlertControllerStyle.Alert);
         alertController.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Cancel, null));
         PresentViewController(alertController, true, null);
     }
 }
 void filterRace()
 {
     filteredResult = AppData.offlineRaceResultList.Find
                          (x => x.location_name.ToLower().Contains(alertController1.TextFields[0].Text.ToLower()) &&
                          x.course_name.ToLower().Contains(alertController1.TextFields[1].Text.ToLower()));
     if (filteredResult != null)
     {
         this.PerformSegue("viewRaceSegue", this);
     }
     else
     {
         UIAlertController alertController;
         alertController = UIAlertController.Create("Race Record not found.", null, UIAlertControllerStyle.Alert);
         alertController.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Cancel, null));
         PresentViewController(alertController, true, null);
     }
 }
Exemple #4
0
 public void SetTask(viewRaceRecordViewController d, RaceResultClass record)
 {
     locationLabel.Text = record.location_name;
     courseLabel.Text   = record.course_name;
 }
 public RaceRecordsDataSource(RaceResultClass thisRaceResult, UIViewController inputControl)
 {
     raceDataSourceController = inputControl;
     thisRace = thisRaceResult;
     //this.tableItems = AppData.offlineRecordList;
 }