protected override void OnLoad(EventArgs e) { base.OnLoad(e); SystemMessageContainer.Heading = "Translate"; ContentDataSource.DataBind(); if (SourceLanguageDropDownList.Items.Count < 1) { foreach (var language in LanguageBranchRepository.ListEnabled()) { SourceLanguageDropDownList.Items.Add(CreateLanguageListItem(language)); if (CheckAccessRightOnLanguageBranch(language)) { TargetLanguageDropDownList.Items.Add(CreateLanguageListItem(language)); } } } }
public Handler() { _languageBranchRepository = ServiceLocator.Current.GetInstance <LanguageBranchRepository>(); }