Esempio n. 1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            listView.NotifyItemSelected(tableItems [indexPath.Row]);

            Console.WriteLine("Row " + indexPath.Row.ToString() + " selected");

            tableView.DeselectRow(indexPath, true);
        }
Esempio n. 2
0
        public override void SelectionDidChange(NSNotification notification)
        {
            var selectedRow = (int)_nsTableView.SelectedRow;

            if (selectedRow == -1)
            {
                return;
            }
            _listView.NotifyItemSelected(_tableItems[selectedRow]);
            Console.WriteLine("Row " + selectedRow.ToString() + " selected");
            _nsTableView.DeselectRow(selectedRow);
        }