Exemplo n.º 1
0
        private static void CheckTranslationStorageExist()
        {
            var translationRepo    = new EditorTranslationInfoRepository();
            TranslationInfoSet set = translationRepo.Get();

            if (set == null)
            {
                translationRepo.CreateModel();
            }
        }
Exemplo n.º 2
0
        public TranslationInfoPresenter(EditorTranslationInfoRepository translationInfoRepository, TranslationIOUnit translationIOUnit)
        {
            if (translationInfoRepository == null)
            {
                throw new ArgumentNullException(nameof(EditorTranslationInfoRepository));
            }

            if (translationIOUnit == null)
            {
                throw new ArgumentNullException(nameof(TranslationIOUnit));
            }

            this._translationIOUnit         = translationIOUnit;
            this._translationInfoRepository = translationInfoRepository;
        }