private void ApplyConfiguration() { if (FormOptions.ConnectToDocumentation) { webBrowserTutorialContent.Visible = true; panelShowTutorialLink.Visible = false; } else { webBrowserTutorialContent.Visible = false; panelShowTutorialLink.Visible = true; } foreach (ListViewItem item in listViewTutorials.Items) { ITutorial example = item.Tag as ITutorial; item.Text = example.Caption; } if (listViewTutorials.SelectedItems.Count > 0) { ITutorial selectedTutorial = listViewTutorials.SelectedItems[0].Tag as ITutorial; labelTutorialDescription.Text = selectedTutorial.Description; if (FormOptions.ConnectToDocumentation) { webBrowserTutorialContent.Navigate(new Uri(selectedTutorial.Uri)); } else { linkLabelTutorialContent.Tag = selectedTutorial.Uri; linkLabelTutorialContent.Text = selectedTutorial.Uri; } } Translator.TranslateControls(this, "FormBase.txt"); }
private void radioButtonLanguage1033_CheckedChanged(object sender, EventArgs e) { _lcid = radioButtonLanguage1033.Checked ? 1033 : 1031; Translator.TranslateControls(this, "FormOptions.txt"); }