Exemplo n.º 1
0
        void CreateTableItems()
        {
            var tableItems = new string[] {
                "Vegetables",
                "Fruits",
                "Flower Buds",
                "Legumes",
                "Bulbs",
                "Tubers"
            };

            source           = new TableSource(tableItems);
            source.Selected += (sender, e) => {
                var alert = UIAlertController.Create("Row Selected", e.Content, UIAlertControllerStyle.Alert);
                alert.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Default, null));

                PresentViewController(alert, true, null);
            };

            table.Source = source;
        }
Exemplo n.º 2
0
		void CreateTableItems ()
		{
			var tableItems = new string[] {
				"Vegetables",
				"Fruits",
				"Flower Buds",
				"Legumes",
				"Bulbs",
				"Tubers"
			};

			source = new TableSource (tableItems);
			source.Selected += (sender, e) => {
				var alert = UIAlertController.Create ("Row Selected", e.Content, UIAlertControllerStyle.Alert);
				alert.AddAction (UIAlertAction.Create ("Ok", UIAlertActionStyle.Default, null));

				PresentViewController(alert, true, null);
			};

			table.Source = source;
		}