private void mnuToolsOptions_Click(object sender, System.EventArgs e) { frmOptions frm = new frmOptions(this.appSettings,this.localizer); if(frm.ShowDialog(this) == DialogResult.OK) { if(frm.SelectedLanguage != string.Empty && frm.SelectedLanguage != this.appSettings.UILanguage) { this.appSettings.UILanguage = frm.SelectedLanguage; this.appSettings.SaveSettings(); this.LocalizeControls(this.appSettings.UILanguageFilePath); TabPage selectedTab = tabUseCase.SelectedTab; this.UpdateView(); tabUseCase.SelectedTab = selectedTab; } } }
private void mnuToolsOptions_Click(object sender, System.EventArgs e) { frmOptions frm = new frmOptions(this.appSettings,this.localizer); if(frm.ShowDialog(this) == DialogResult.OK) { if(frm.SelectedLanguage != string.Empty && frm.SelectedLanguage != this.appSettings.UILanguage) { this.CloseAllDocuments(); this.appSettings.UILanguage = frm.SelectedLanguage; this.appSettings.SaveSettings(); this.LocalizeControls(this.appSettings.UILanguageFilePath); } } }