//By Johann /// <summary> /// Loads the topics of the selected child category into the BindableCollection /// </summary> private void LoadTopics() { Topics.Clear(); if (SelectedChildCategory != null) { Topics.AddRange(Topic.GetTopicsByCategoryId(SelectedChildCategory.Id)); } }
private void RefreshData() { MyListView.ItemsSource = null; if (Topics.Count > 0) { Topics.Clear(); } Topics = tih.GetMyTopicList(uih.GetMyServiceArea()); MyListView.ItemsSource = Topics; }
private void RefreshData() { MyListView.ItemsSource = null; if (Topics.Count > 0) { Topics.Clear(); } Topics = tih.GetDigitalTopicList(); MyListView.ItemsSource = Topics; }
protected virtual void Dispose(bool disposing) { if (disposing && _gcRunning != GCState.Disposed) { // Stop the broker from doing any work _broker.Dispose(); // Spin while we wait for the timer to finish if it's currently running while (Interlocked.CompareExchange(ref _gcRunning, GCState.Disposed, GCState.Idle) == GCState.Running) { Thread.Sleep(250); } // Remove all topics Topics.Clear(); if (_gcTimer != null) { _gcTimer.Dispose(); } } }
public void ClearTopics() { Topics.Clear(); }
public bool Read(ClearTopicsOutput message) { Topics.Clear(); return(true); }