public void Initialized()//TODO change to ctor and check where to take sms from arfcns or SMS { Search = new RelayCommand(OnSearch); ResetSearch = new RelayCommand(OnResetSearch); SMSs = new ObservableCollection <SMS>(); //_ARFCNs = TransferDB.ARFCNs; //foreach(ARFCN arfcn in _ARFCNs) //{ // if(arfcn!=null) // { // SMSs.Union(arfcn.SMS); // } //} SMSs = TransferDB.SMSs; SequencingService.SetCollectionSequence(SMSs); //_SMSs.CollectionChanged += _SMSs_CollectionChanged; #if (DEBUG) #else #endif }
public void OnResetSearch() { SearchWord = null; //foreach (ARFCN arfcn in _ARFCNs) //{ // if (arfcn != null) // { // SMSs.Union(arfcn.SMS); // } //} SMSs = TransferDB.SMSs; SequencingService.SetCollectionSequence(SMSs); }
private void ListARFCNs_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { SequencingService.SetCollectionSequence(ListARFCNs); }
private void _RecordFiles_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { SequencingService.SetCollectionSequence(RecordFiles); }