public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			tableView 	= new UITableView ();
			helper 		= new TableViewHelper (tableView);


			var s0r0 = buildCell (UITableViewCellStyle.Default, "S0R0", "Tap to hide/show Date Selector");
			var s0r1 = buildDateCell (UITableViewCellStyle.Default, "S0R1");
					 
			var s1r0 = buildCell (UITableViewCellStyle.Default, "S1R0", "Tap to fill 3rd Section");
					 
			var s2r0 = buildCell (UITableViewCellStyle.Default, "S2R0", "3rd Section - Row 0", "Tap to Delete");
			var s2r1 = buildCell (UITableViewCellStyle.Default, "S2R1", "3rd Section - Row 1", "Tap to Delete");
			var s2r2 = buildCell (UITableViewCellStyle.Default, "S2R2", "3rd Section - Row 2", "Tap to Delete");
					 
			var s3r0 = buildCell (UITableViewCellStyle.Default, "S3R0", "This one doesn't do anything");

			helper.addCell (0, s0r0, "S0R0");
			helper.addCell (0, s0r1, "S0R1");

			helper.addCell (1, s1r0, "S1R0");

			helper.addCell (2, s2r0, "S2R0");
			helper.addCell (2, s2r1, "S2R1");
			helper.addCell (2, s2r2, "S2R2");

			helper.addCell (3, s3r0, "S3R0");

			helper.hideCell ("S0R1");
			helper.hideCell ("S1R0");

			source 				= new TableViewSource (helper);
			tableView.Source 	= source;
			this.Add (tableView);

		}
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            tableView = new UITableView();
            helper    = new TableViewHelper(tableView);


            var s0r0 = buildCell(UITableViewCellStyle.Default, "S0R0", "Tap to hide/show Date Selector");
            var s0r1 = buildDateCell(UITableViewCellStyle.Default, "S0R1");

            var s1r0 = buildCell(UITableViewCellStyle.Default, "S1R0", "Tap to fill 3rd Section");

            var s2r0 = buildCell(UITableViewCellStyle.Default, "S2R0", "3rd Section - Row 0", "Tap to Delete");
            var s2r1 = buildCell(UITableViewCellStyle.Default, "S2R1", "3rd Section - Row 1", "Tap to Delete");
            var s2r2 = buildCell(UITableViewCellStyle.Default, "S2R2", "3rd Section - Row 2", "Tap to Delete");

            var s3r0 = buildCell(UITableViewCellStyle.Default, "S3R0", "This one doesn't do anything");

            helper.addCell(0, s0r0, "S0R0");
            helper.addCell(0, s0r1, "S0R1");

            helper.addCell(1, s1r0, "S1R0");

            helper.addCell(2, s2r0, "S2R0");
            helper.addCell(2, s2r1, "S2R1");
            helper.addCell(2, s2r2, "S2R2");

            helper.addCell(3, s3r0, "S3R0");

            helper.hideCell("S0R1");
            helper.hideCell("S1R0");

            source           = new TableViewSource(helper);
            tableView.Source = source;
            this.Add(tableView);
        }
		public TableViewSource (TableViewHelper helper)
		{
			this.helper = helper;
		}
 public TableViewSource(TableViewHelper helper)
 {
     this.helper = helper;
 }