Пример #1
0
 private void FrmAgregarEmpleado_Load(object sender, EventArgs e)
 {
     if (!this.IsEditar)
     {
         this.ListaCargo =
             LlenarListas.LlenarListaCargo(this.ListaCargo);
     }
 }
Пример #2
0
        public void ObtenerDatos(List <string> datos)
        {
            this.IsEditar   = true;
            this.ListaCargo =
                LlenarListas.LlenarListaCargo(this.ListaCargo);
            this.Text             = "Editar datos de un empleado";
            this.Tag              = datos[0];
            this.txtNombre.Text   = datos[1];
            this.txtTelefono.Text = datos[2];
            this.txtCorreo.Text   = datos[3];
            this.ListaCargo.Text  = datos[4];
            this.txtPass1.Text    = datos[5];
            this.txtPass2.Text    = datos[5];

            this.txtPass1.Visible   = false;
            this.txtPass2.Visible   = false;
            this.labelPASS1.Visible = false;
            this.labelPASS2.Visible = false;
        }