/// <summary>
        /// Creates a new instance of the ucTranslationView class.
        /// </summary>
        public ucTranslationView()
        {
            InitializeComponent();

            if (LicenseManager.UsageMode == LicenseUsageMode.Designtime || DesignMode)
            {
                return;
            }

            TranslationController.Initialize(this);
        }
        private void cbTransToolLanguages_SelectedIndexChanged(object sender, EventArgs e)
        {
            string filename             = GetFilePathByName(cbTransToolLanguages.SelectedItem);
            LanguageFileContent content = TranslationController.LoadSelectedLanguage(filename);

            if (content != null)
            {
                SetEnabledOfAllControls(cbTransToolEdit.Checked);
                LanguageFileContent = content;
            }
            else
            {
                SetEnabledOfAllControls(false);
            }
        }
        private void btnTransToolSave_Click(object sender, EventArgs e)
        {
            if (mLanguageFileContent != null)
            {
                mLanguageFileContent.FileName  = tbTransToolFileName.Text;
                mLanguageFileContent.Name      = tbTransToolLanguageName.Text;
                mLanguageFileContent.ShortName = tbTransToolLanguageShortName.Text;
                mLanguageFileContent.Save();

                mLastSelectedItemName = mLanguageFileContent.FileName;

                cbTransToolLanguages.Items.Clear();
                cbTransToolLanguages.Items.AddRange(TranslationController.GetAvailableLanguages());

                foreach (LanguageSelectInfo item in cbTransToolLanguages.Items)
                {
                    if (item.Name == mLastSelectedItemName)
                    {
                        cbTransToolLanguages.SelectedItem = item;
                        break;
                    }
                }
            }
        }
 private void ucTranslationView_Load(object sender, EventArgs e)
 {
     cbTransToolLanguages.Items.Clear();
     cbTransToolLanguages.Items.AddRange(TranslationController.GetAvailableLanguages());
 }