/// <summary>
        /// Performs the full synchronize with language.
        /// </summary>
        /// <param name="language">The language.</param>
        public void PerformFullSyncWithLanguage(ServerLanguage language)
        {
            if (this.CheckConnectivityForFullSync())
            {
                bool           possibleCancel = true;
                IServerSession crmSession     = ServerSession.CurrentSession;
                if (language != null && crmSession.LanguageKey != language.Key)
                {
                    crmSession.UpdateSessionWithNewLanguage(language);
                    possibleCancel = false;
                }
                else
                {
                    crmSession.SyncManager.PerformFullSync();
                }

                this.ModelControllerDelegate?.ShowModalSyncProgressViewWithPossibleCancelOperation(possibleCancel, 0);
                HistoryManager.DefaultHistoryManager.DeleteHistory();
                HistoryManager.ReleaseHistoryManager();
            }
        }