public static void AjustaCultura(LoginValidate frm, string culture) { AlteraThreadIdioma(culture); System.ComponentModel.ComponentResourceManager resx = new System.ComponentModel.ComponentResourceManager(frm.GetType()); AlteraCultura(frm, resx); }
private static void AlteraCultura(LoginValidate frm, System.ComponentModel.ComponentResourceManager resx) { frm.Text = resx.GetObject("$this.Text", System.Threading.Thread.CurrentThread.CurrentCulture).ToString(); foreach (Control ctrl in frm.Controls) { resx.ApplyResources(ctrl, ctrl.Name, System.Threading.Thread.CurrentThread.CurrentCulture); } }
private void BTN_Sair_Click(object sender, EventArgs e) { log.logador("Iniciando logout do sistema para o usuario: " + userName); logOut = true; LoginValidate login = new LoginValidate(); this.Close(); login.Show(); }