Esempio n. 1
0
        private void DoSetSender(ModelSender aSender)
        {
            iSender = aSender;

            /*foreach (ListViewItem i in ListViewSelector.Items)
             * {
             *  ModelSourceMultipus s = i.Tag as ModelSourceMultipus;
             *  i.Checked = IsPlayingSender(s);
             * }*/
            DoSourceListChanged();
        }
Esempio n. 2
0
        public void Select(ModelSender aSender)
        {
            iSender = aSender;

            if (IsViewLoaded)
            {
                Title = aSender.Name;

                DataSourceReceivers dataSource = new DataSourceReceivers(TableView, iReceiversList, aSender);
                TableView.DataSource = dataSource;
                TableView.Delegate   = new DelegateReceivers(aSender, dataSource);
            }
        }
Esempio n. 3
0
            public DataSourceReceivers(UITableView aTableView, ReceiverSourceList aReceiversList, ModelSender aSender)
            {
                iTableView     = aTableView;
                iReceiversList = aReceiversList;
                iSender        = aSender;

                iList = new List <ModelSourceReceiver>();

                CreateList();

                iReceiversList.EventReceiverSourceAdded   += SourceAdded;
                iReceiversList.EventReceiverSourceRemoved += SourceRemoved;
                iReceiversList.EventReceiverSourceChanged += SourceChanged;
            }
Esempio n. 4
0
 public void SetSender(ModelSender aSender)
 {
     if (ListViewSelector.InvokeRequired)
     {
         ListViewSelector.BeginInvoke((MethodInvoker) delegate()
         {
             DoSetSender(aSender);
         });
     }
     else
     {
         DoSetSender(aSender);
     }
 }
Esempio n. 5
0
 public DelegateReceivers(ModelSender aSender, DataSourceReceivers aDataSource)
 {
     iSender     = aSender;
     iDataSource = aDataSource;
 }