Exemple #1
1
 private void CollectStatistics(SyncOperationStatistics stats)
 {
     _syncStats = new SyncStatistics(stats);
 }
Exemple #2
0
        public bool ThrUpdateSyncStatisticStatus(SyncStatistics syncStats)
        {
            bool retVal = true;
            if (this.InvokeRequired)
            {
                Func<SyncStatistics, bool> func = this.ThrUpdateSyncStatisticStatus;
                retVal = (bool)this.Invoke(func, syncStats);
            }
            else
            {
                if (syncStats != null)
                {
                    this.statusStrip1.Text = String.Format(Resources.FormSyncMenuStatusStrip_Pattern,
                                                            syncStats.UploadChangesApplied,
                                                            syncStats.UploadChangesFailed,
                                                            syncStats.UploadChangesTotal,
                                                            syncStats.DownloadChangesApplied,
                                                            syncStats.DownloadChangesFailed,
                                                            syncStats.DownloadChangesTotal);
                }
            }

            return retVal;
        }
Exemple #3
0
 private void CollectStatistics(SyncOperationStatistics stats)
 {
     _syncStats = new SyncStatistics(stats);
 }