private void DoSetSender(ModelSender aSender) { iSender = aSender; /*foreach (ListViewItem i in ListViewSelector.Items) * { * ModelSourceMultipus s = i.Tag as ModelSourceMultipus; * i.Checked = IsPlayingSender(s); * }*/ DoSourceListChanged(); }
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); } }
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; }
public void SetSender(ModelSender aSender) { if (ListViewSelector.InvokeRequired) { ListViewSelector.BeginInvoke((MethodInvoker) delegate() { DoSetSender(aSender); }); } else { DoSetSender(aSender); } }
public DelegateReceivers(ModelSender aSender, DataSourceReceivers aDataSource) { iSender = aSender; iDataSource = aDataSource; }