public frmMain() { var LangDlg = new frmLanguageSelection(); LangDlg.ShowDialog(); LanguageSupport.Language = LangDlg.UseDefault ? LanguageSupport.GetNativeLanguage() : LangDlg.SelectedLanguage == 0 ? "Turkish" : "English"; this.InitializeComponent(); }
public frmMain() { DialogResult Chooise = DialogResult.None; string WantToUse = ""; frmLanguageSelection LangDlg = new frmLanguageSelection(); LangDlg.ShowDialog(); if (LangDlg.UseDefault) { LanguageSupport.Language = LanguageSupport.GetNativeLanguage(); } else { LanguageSupport.Language = LangDlg.SelectedLanguage == 0 ? "Turkish" : "English"; } InitializeComponent(); }