Exemple #1
0
        private void iuCambiarIdioma_Load(object sender, EventArgs e)
        {
            helpProvider1.HelpNamespace = CHM.Cadena;
            bllIdioma bll = new bllIdioma();
            DataTable dt  = new DataTable();

            dt = bll.ListarIdiomas();
            txtIdioma.DataSource    = dt;
            txtIdioma.DisplayMember = "Idioma";
            txtIdioma.ValueMember   = "Idioma";
            CambiarIdioma();
            CambiarCultura();
        }
Exemple #2
0
        private void iuLogin_Load_1(object sender, EventArgs e)
        {
            helpProvider1.HelpNamespace = CHM.Cadena;
            bllIdioma bll = new bllIdioma();
            DataTable dt  = new DataTable();

            dt = bll.ListarIdiomas();

            foreach (DataRow item in dt.Rows)
            {
                cbIdioma.Items.Add(item["Idioma"].ToString());
            }
            cbIdioma.SelectedIndex = 0;
            CambiarCultura();
        }