/// <summary>
 /// Constructor. Gets the device data and the ViewController
 /// </summary>
 public TableSourceAddDeviceDevice(List <string> plugins, string collection,
                                   UITableViewControllerAddDeviceDevice owner)
 {
     this.plugins    = plugins;
     this.owner      = owner;
     this.collection = collection;
 }
Example #2
0
        /// <summary>
        /// Touch on row should lead to next screen with device types
        /// </summary>
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            UITableViewControllerAddDeviceDevice addDeviceType =
                owner.Storyboard.InstantiateViewController(strings.viewControllerAddDevice)  as UITableViewControllerAddDeviceDevice;

            if (addDeviceType != null)
            {
                addDeviceType.collection = collections[indexPath.Row];
                addDeviceType.plugins    = (List <string>)plugins[collections[indexPath.Row]];
                owner.NavigationController.PushViewController(addDeviceType, true);
            }
        }