public AltaModificar(int idUsuario, Usuario usuario) : base(usuario) { InitializeComponent(); this.idUsuario = idUsuario; this.paises = Paises.GetAll(); this.roles = Roles.GetAll(); this.tiposDocumento = TiposDocumento.GetAll(); this.hoteles = Hoteles.GetAll(); this.Text = "Modificar"; RegistrarInputs(); accion = Modificar; }
public AltaModificar(int idUsuario) : base(new Usuario()) { InitializeComponent(); this.idUsuario = idUsuario; this.paises = Paises.GetAll(); this.roles = Roles.GetAll(); this.tiposDocumento = TiposDocumento.GetAll(); this.hoteles = Hoteles.GetAll(); this.Text = "Crear"; CargarDefaults(this.Model as Usuario); RegistrarInputs(); accion = Crear; }