public void PData_Requested(object sender, GotPostsEventArgs e) { // // Set JSONLoader busy for special period - after Async call was just made. // busyJSONLoader[(int)e.period] = true; }
public void PData_Changed(object sender, GotPostsEventArgs e) { busyJSONLoader[(int)e.period] = false; appendedPosts[(int)e.period] += e.len; if (lastPosts[(int)e.period] != null) { UIElement pb = FindElementRecursive(lastPosts[(int)e.period] as FrameworkElement, typeof(ProgressBar)); pb.Visibility = Visibility.Collapsed; } }
public virtual void OnRequested(GotPostsEventArgs e) { // // Event to invoke after posts' portion downloaded // and appended to AllTabs. // if (Requested != null) { Requested(this, e); } }