Bloom.Collection.CollectionSettings.GetLanguage1Name C# (CSharp) Method

GetLanguage1Name() public method

public GetLanguage1Name ( string inLanguage ) : string
inLanguage string
return string
        public string GetLanguage1Name(string inLanguage)
        {
            if(!string.IsNullOrEmpty(this.Language1Name))
                return Language1Name;

            return GetLanguage1Name_NoCache(inLanguage);
        }

Usage Example

        private void UpdateDisplay()
        {
            _language1Name.Text = string.Format("{0} ({1})", _collectionSettings.GetLanguage1Name(LocalizationManager.UILanguageId), _collectionSettings.Language1Iso639Code);
            _language2Name.Text = string.Format("{0} ({1})", _collectionSettings.GetLanguage2Name(LocalizationManager.UILanguageId), _collectionSettings.Language2Iso639Code);

            if (string.IsNullOrEmpty(_collectionSettings.Language3Iso639Code))
            {
                _language3Name.Text          = "--";
                _removeLanguage3Link.Visible = false;
            }
            else
            {
                _language3Name.Text          = string.Format("{0} ({1})", _collectionSettings.GetLanguage3Name(LocalizationManager.UILanguageId), _collectionSettings.Language3Iso639Code);
                _removeLanguage3Link.Visible = true;
            }

            _restartReminder.Visible = _restartRequired;
            _okButton.Text           = _restartRequired ? LocalizationManager.GetString("CollectionSettingsDialog.Restart", "Restart", "If you make certain changes in the settings dialog, the OK button changes to this.") : LocalizationManager.GetString("Common.OKButton", "&OK");

            _xmatterPackCombo.Items.Clear();
            _xmatterPackCombo.Items.AddRange(_xmatterPackFinder.All.ToArray());
            _xmatterPackCombo.SelectedItem = _xmatterPackFinder.FindByKey(_collectionSettings.XMatterPackName);
            if (_xmatterPackCombo.SelectedItem == null)             //if something goes wrong
            {
                _xmatterPackCombo.SelectedItem = _xmatterPackFinder.FactoryDefault;
            }
        }
All Usage Examples Of Bloom.Collection.CollectionSettings::GetLanguage1Name