public void EditDate(MatchingDate theDate)
 {
     DateDetailViewController dateViewer = new DateDetailViewController ();
     if (dateViewer != null) {
         this.NavigationController.PushViewController (dateViewer, true);
         dateViewer.SetCurrentDate (theDate);
     }
 }
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            int section = indexPath.Section;
            MatchingDate theDate = null;
            List<MatchingDate> sectionList;

            if (section == 0)
                sectionList = AppliedDates;
            else if (section == 1)
                sectionList = PinnedDates;
            else
                sectionList = OtherDates;

            if ((sectionList == null) || (sectionList.Count == 0))
                theDate = null;
            else
                theDate = sectionList [indexPath.Row];

            if (theDate != null) {
                DateDetailViewController dateViewer = new DateDetailViewController ();
                if (dateViewer != null) {
                    (UIApplication.SharedApplication.Delegate as AppDelegate).RootViewController.NavController.PushViewController (dateViewer, true);
                    dateViewer.SetCurrentDate (theDate);
                }

            }
        }