Esempio n. 1
0
            public override void RowSelected(UITableView aTableView, NSIndexPath aIndexPath)
            {
                aTableView.DeselectRow(aIndexPath, true);
                ModelSourceReceiver receiver = iDataSource.ReceiverAt(aIndexPath);

                if (receiver.IsPlayingSender(iSender))
                {
                    receiver.Stop();
                }
                else
                {
                    receiver.PlayNow(iSender.Metadata);
                }
            }
Esempio n. 2
0
 private void ListViewSelector_ItemActivate(object sender, EventArgs e)
 {
     Console.WriteLine(ListViewSelector.Items.Count + " " + ListViewSelector.SelectedIndices.Count);
     if (ListViewSelector.SelectedIndices.Count > 0)
     {
         ModelSourceReceiver s = ListViewSelector.Items[ListViewSelector.SelectedIndices[0]].Tag as ModelSourceReceiver;
         if (s.IsPlayingSender(iSender))
         {
             s.Stop();
         }
         else
         {
             s.PlayNow(iSender.Metadata);
         }
     }
 }