Пример #1
0
        //------------------------------------------------------------------------------------
        /// <summary>
        /// Starts a background task to attempt to commit all currently queued changes to the
        /// back-end store.
        /// </summary>
        //------------------------------------------------------------------------------------
        public void CommitChanges(bool showProgress = true)
        {
            if (m_changedItems.Count > 0)
            {
                IsCommitInProgress = true;
                CommitChangesWorker commitWorker = new CommitChangesWorker();

                List <StoreItem> commitItems = m_changedItems.ToList();
                commitWorker.CommitItems(commitItems, showProgress);
            }
        }