Beispiel #1
0
 //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));
     }
 }
Beispiel #2
0
 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;
 }
Beispiel #4
0
        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();
                }
            }
        }
Beispiel #5
0
 public void ClearTopics()
 {
     Topics.Clear();
 }
Beispiel #6
0
 public bool Read(ClearTopicsOutput message)
 {
     Topics.Clear();
     return(true);
 }