private void OnGetReferrerStatsRPCCompleted(object sender, XMLRPCCompletedEventArgs <ReferrerDataPoint> args)
        {
            GetReferrerStatsRPC rpc = sender as GetReferrerStatsRPC;

            rpc.Completed -= OnGetReferrerStatsRPCCompleted;

            if (args.Cancelled)
            {
            }
            else if (null == args.Error)
            {
                HideStatControls();

                referrersGrid.Visibility = Visibility.Visible;

                ObservableObjectCollection dataSource = Resources["referrerStatsDataSource"] as ObservableObjectCollection;
                dataSource.Clear();
                args.Items.ForEach(item => dataSource.Add(item));
            }
            else
            {
                this.HandleException(args.Error);
            }

            loadingStatsProgressBar.Opacity = 0.0;
        }
        private void RetrieveReferrers()
        {
            GetReferrerStatsRPC rpc = new GetReferrerStatsRPC(App.MasterViewModel.CurrentBlog);

            rpc.StatisicPeriod = StatisticPeriod;
            rpc.Completed     += OnGetReferrerStatsRPCCompleted;
            rpc.ExecuteAsync();

            loadingStatsProgressBar.Opacity = 1.0;
        }
        private void RetrieveReferrers()
        {
            GetReferrerStatsRPC rpc = new GetReferrerStatsRPC(App.MasterViewModel.CurrentBlog);
            rpc.StatisicPeriod = StatisticPeriod;
            rpc.Completed += OnGetReferrerStatsRPCCompleted;
            rpc.ExecuteAsync();

            loadingStatsProgressBar.Opacity = 1.0;
        }