Exemplo n.º 1
0
        public override void Reload(bool notify)
        {
            GenerateReloadFragment();

            lock (cache) {
                if (CalculateUnfilteredCount)
                {
                    UpdateUnfilteredAggregates();
                }

                connection.BeginTransaction();
                cache.SaveSelection();
                cache.Reload();
                cache.UpdateAggregates();
                cache.RestoreSelection();
                connection.CommitTransaction();

                count = cache.Count + select_all_offset;
            }

            UpdateSelectAllItem(count - select_all_offset);

            if (notify)
            {
                OnReloaded();
            }
        }
Exemplo n.º 2
0
        public override void Reload(bool notify)
        {
            GenerateReloadFragment();

            lock (cache) {
                connection.BeginTransaction();
                cache.SaveSelection();
                cache.Reload();
                cache.UpdateAggregates();
                cache.RestoreSelection();
                connection.CommitTransaction();

                count = cache.Count + 1;
            }

            UpdateSelectAllItem(count - 1);

            if (notify)
            {
                OnReloaded();
            }
        }