예제 #1
0
		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;
				}
			}
		}
예제 #2
0
 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);
         }
     }
 }