Esempio n. 1
1
 private void CollectStatistics(SyncOperationStatistics stats)
 {
     _syncStats = new SyncStatistics(stats);
 }
Esempio n. 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;
        }
Esempio n. 3
0
 private void CollectStatistics(SyncOperationStatistics stats)
 {
     _syncStats = new SyncStatistics(stats);
 }