Esempio n. 1
0
 private void LoadTranslations()
 {
     try
     {
         m_Translation = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftSettlement, EidssUserContext.CurrentLanguage);
     }
     catch (Exception ex)
     {
         ErrorForm.ShowError(ex);
     }
 }
Esempio n. 2
0
        public void LoadTranslations()
        {
            try
            {
                var tr1 = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftSettlement, EidssUserContext.CurrentLanguage);
                var tr2 = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftRayon, EidssUserContext.CurrentLanguage);
                var tr3 = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftRegion, EidssUserContext.CurrentLanguage);
                var tr4 = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftCountry, EidssUserContext.CurrentLanguage);

                m_Translation = tr1;
                m_Translation.Merge(tr2);
                m_Translation.Merge(tr3);
                m_Translation.Merge(tr4);
            }
            catch (Exception ex)
            {
                ErrorForm.ShowError(ex);
            }
        }
Esempio n. 3
0
        private void LoadTranslations()
        {
            try
            {
                switch (PivotalType)
                {
                case PivotLayerType.Districts:
                    m_Translation = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftRayon,
                                                                    EidssUserContext.CurrentLanguage);
                    break;

                case PivotLayerType.Regions:
                    m_Translation = TranslationCache.GetTranslation(ConnectionString, (long)GisDbType.RftRegion,
                                                                    EidssUserContext.CurrentLanguage);
                    break;
                }
            }
            catch (Exception ex)
            {
                ErrorForm.ShowError(ex);
            }
        }