Exemplo n.º 1
0
            public virtual void OnVoteSelected(VoteSelectedEventArgs e)
            {
                EventHandler <VoteSelectedEventArgs> handler = VoteSelected;

                if (null != handler)
                {
                    handler(this, e);
                }
            }
Exemplo n.º 2
0
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                tableView.DeselectRow(indexPath, true);

                var item = Items [indexPath.Row];
                var args = new VoteSelectedEventArgs {
                    SelectedVote = item
                };

                OnVoteSelected(args);
            }
Exemplo n.º 3
0
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                VoteTableViewCell cell = tableView.DequeueReusableCell(CellIdentifier) as VoteTableViewCell;

                // Data
                var item = Items [indexPath.Row];

                cell.UpdateUIWith(item);

                cell.btnNext.TouchUpInside += (sender, e) => {
                    var args = new VoteSelectedEventArgs {
                        SelectedVote = item
                    };

                    OnVoteSelected(args);
                };

                return(cell);
            }
Exemplo n.º 4
0
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                tableView.DeselectRow (indexPath, true);

                var item = Items [indexPath.Row];
                var args = new VoteSelectedEventArgs { SelectedVote = item };

                OnVoteSelected (args);
            }
Exemplo n.º 5
0
            public virtual void OnVoteSelected(VoteSelectedEventArgs e)
            {
                EventHandler<VoteSelectedEventArgs> handler = VoteSelected;

                if (null != handler) {
                    handler (this, e);
                }
            }
Exemplo n.º 6
0
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                VoteTableViewCell cell = tableView.DequeueReusableCell (CellIdentifier) as VoteTableViewCell;

                // Data
                var item = Items [indexPath.Row];

                cell.UpdateUIWith (item);

                cell.btnNext.TouchUpInside += (sender, e) => {

                    var args = new VoteSelectedEventArgs { SelectedVote = item };

                    OnVoteSelected (args);
                };

                return cell;
            }