예제 #1
0
        public static void AjustaCultura(LoginValidate frm, string culture)
        {
            AlteraThreadIdioma(culture);

            System.ComponentModel.ComponentResourceManager resx = new System.ComponentModel.ComponentResourceManager(frm.GetType());

            AlteraCultura(frm, resx);
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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();
        }