コード例 #1
0
ファイル: OCMSplash.cs プロジェクト: ksued/opencache-manager
        void HandleAppCacheStoreReadCache(object sender, ocmengine.ReadCacheArgs args)
        {
            m_Model.Add(args.Cache);
            if (!args.Cache.Available)
            {
                m_disabledOrArchivedCount++;
            }
            else if (args.Cache.Archived)
            {
                m_disabledOrArchivedCount++;
            }
            if (args.Cache.Found)
            {
                m_foundCount++;
            }
            if (m_App.OwnerIDs.Contains(args.Cache.OwnerID) || m_App.OwnerIDs.Contains(args.Cache.PlacedBy))
            {
                m_mineCount++;
            }
            m_visibleCount++;

            m_Count++;
            if (m_Count == 50)
            {
                loadProgress.Pulse();
                OCMApp.UpdateGUIThread();
                m_Count = 0;
            }
        }
コード例 #2
0
 void HandleCacheStoreReadCache(object sender, ReadCacheArgs args)
 {
     m_list.Add(args.Cache);
     if (!args.Cache.Available)
         m_disabledOrArchivedCount++;
     else if (args.Cache.Archived)
         m_disabledOrArchivedCount++;
     if (args.Cache.Found)
         m_foundCount++;
     if (m_app.OwnerIDs.Contains(args.Cache.OwnerID) || m_app.OwnerIDs.Contains(args.Cache.PlacedBy))
         m_mineCount++;
     m_visibleCount++;
     if (null != this.RefreshPulse)
         this.RefreshPulse(this, new CacheEventArgs(args.Cache));
 }