Beispiel #1
0
 private void fillVisits()
 {
     if (thisP != null)
     {
         allVisits = thisP.getVisits();
         this.Visits.Rows.Clear();
         this.Visits.AllowUserToAddRows = false;
         int indexRow = 0;
         for (int i = 0; i < allVisits.Count; i++)
         {
             Visit thisV = allVisits[i];
             this.Visits.Rows.Add();
             this.Visits.Rows[indexRow].Cells[1].Value = thisV.getDate();
             this.Visits.Rows[indexRow].Cells[2].Value = thisV.getResult();
             indexRow++;
         }
     }
     else
     {
         this.Visits.Hide();
         this.AddVisit.Hide();
     }
 }
Beispiel #2
0
 public void addVisit(Visit v)
 {
     visits.Add(v);
 }