Example #1
0
 public ModUser(string usuario, string idioma)
 {
     this.usuario = usuario;
     oldPass      = GestorUsers.getData("password", "usuario", "upper(name) = '" + usuario.ToUpper() + "'");
     InitializeComponent();
     lblUsuario.Text = usuario;
     initRole(" where deleted = 0");
     this.idioma = idioma;
     if (this.idioma == "ESPAÑOL")
     {
         idioma_es();
         this.Text = "Modificar Usuario";
     }
     else if (this.idioma == "INGLES")
     {
         idioma_en();
         this.Text = "Modify User";
     }
 }
Example #2
0
 private void cmbRole_SelectedIndexChanged(object sender, EventArgs e)
 {
     refRol = Convert.ToInt16(GestorUsers.getData("idRol", "rol", "upper(name) = '" + cmbRol.SelectedItem.ToString().ToUpper() + "'"));
 }