Beispiel #1
0
        public InterfazListaCategoria(InterfazPrincipal ventana)
        {
            MiVentana = ventana;
            InitializeComponent();

            dtvListarCategorias.AllowUserToAddRows = false;
            dtvListarCategorias.Visible            = false;
            lblInfoCategoria.Text = "";

            ControladorDeporte  Cdeporte = new ControladorDeporte();
            List <ModelDeporte> lista    = new List <ModelDeporte>();

            lista = Cdeporte.ListarTodosDeportes();
            lista.Insert(0, new ModelDeporte()
            {
                IdDeporte = 0, Nombre = "Seleccione un deporte"
            });
            cbxDeporteCategoria.DataSource    = lista;
            cbxDeporteCategoria.ValueMember   = "IdDeporte";
            cbxDeporteCategoria.DisplayMember = "Nombre";

            this.CategoriaBindingSource.DataSource = typeof(ProjectGimnasiaYEsgrima.Modelo.ModelCategoria);

            CargarCamposFocus();
            CargarInterfazBuena();
        }
Beispiel #2
0
        public InterfazEntradaSalida(InterfazPrincipal ventana)
        {
            MiVentana = ventana;
            InitializeComponent();
            parado = true;

            CargarInterfazBuena();
        }
Beispiel #3
0
 public InterfazListaSocio(InterfazPrincipal ventana)
 {
     MiVentana = ventana;
     InitializeComponent();
     dataGridViewSocioPersona.AllowUserToAddRows = false;
     dataGridViewSocioPersona.Visible            = false;
     lblInfoSocio.Text = "";
     CargarCamposFocus();
     CargarInterfazBuena();
 }
Beispiel #4
0
 public InterfazInicioSesion(InterfazPrincipal ventana)
 {
     MiVentana = ventana;
     InitializeComponent();
     logueado   = false;
     MiEmpleado = null;
     Recargar();
     CargarFocus();
     CargarInterfazBuena();
 }
Beispiel #5
0
        public InterfazListaDeportes(InterfazPrincipal ventana)
        {
            MiVentana = ventana;
            InitializeComponent();



            dataGridViewDeporte.AllowUserToAddRows = false;
            dataGridViewDeporte.Visible            = false;

            this.ModificarMensaje("");
            CargarCamposFocus();
            CargarInterfazBuena();
        }
Beispiel #6
0
        public InterfazListaEmpleado(InterfazPrincipal ventana)
        {
            MiVentana = ventana;
            InitializeComponent();
            dgvEmpleadoPersona.AllowUserToAddRows = false;
            dgvEmpleadoPersona.Visible            = false;
            List <string> lista = Enum.GetNames(typeof(EnumTipoEmpleado)).ToList();

            lista.Insert(0, "");
            cbxTipoEmpleado.DataSource = lista;
            lblInfoEmpleado.Text       = "";

            this.empleadoPersonaBindingSource.DataSource = typeof(ProjectGimnasiaYEsgrima.Modelo.ModelEmpleadoPersona);

            CargarCamposFocus();
            CargarInterfazBuena();
        }
Beispiel #7
0
        public InterfazConfiguracion(InterfazPrincipal ventana)
        {
            MiVentana = ventana;
            InitializeComponent();
            var valorcuotaInicial = new ControladorSocio().UltimoValorInicialClub();

            if (valorcuotaInicial == null)
            {
                txtValorInicialAsociado.Text = 0 + "";
            }
            else
            {
                txtValorInicialAsociado.Text = valorcuotaInicial.Importe + "";
            }

            CargarCamposFocus();
            CargarInterfazBuena();
        }
Beispiel #8
0
 public InterfazFiltroReporte(InterfazPrincipal ventana)
 {
     MiVentana = ventana;
     InitializeComponent();
     CargarInterfazBuena();
 }