public InterfazInscribirSocioCategoria(InterfazListaSocio ventana, ModelSocioPersona socio) { Padre = ventana; MiSocio = socio; 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(); }
public InterfazModificarSocio(InterfazListaSocio padre, ModelSocioPersona socio) { this.Padre = padre; this.Socio = socio; InitializeComponent(); txtNombreSocio.Text = Socio.Nombre; txtApellidoSocio.Text = Socio.Apellido; dtFechaNacimientoSocio.Value = Socio.MiPersona.FechaNacimiento; txtDocumentoSocio.Text = Convert.ToString(Socio.DNI); txtDireccionSocio.Text = Socio.MiSocio.Direccion; txtLocalidadSocio.Text = Socio.MiSocio.Localidad; txtTelefonoSocio.Text = Socio.MiSocio.Telefono; txtTipoDocSocio.Text = Socio.MiSocio.TipoDocumento.ToString(); txtDocumentoSocio.ReadOnly = true; txtTipoDocSocio.ReadOnly = true; cbxCategoria.DataSource = Enum.GetValues(typeof(EnumCategoriaSocio)); CargarCamposFocus(); CargarInterfazBuena(); }
public InterfazAltaSocio(InterfazListaSocio padre) { Padre = padre; InitializeComponent(); cbxTipoDocumentoSocio.DataSource = Enum.GetValues(typeof(EnumTipoDocumento)); cbxCategoria.DataSource = Enum.GetValues(typeof(EnumCategoriaSocio)); CargarCamposFocus(); CargarInterfazBuena(); }
public InterfazGeneradorDeCupones(InterfazListaSocio ventana, List <ModelImpresionCuponSocio> models1, List <ModelImpresionCuponSocio> models2) { MiVentana = ventana; MiModelos1 = models1; MiModelos2 = models2; InitializeComponent(); reportViewer1.ProcessingMode = ProcessingMode.Local; this.reportViewer1.LocalReport.ReportEmbeddedResource = "ProjectGimnasiaYEsgrima.Utils.Cupon.rdlc"; CargarInterfazBuena(); }
public InterfazEmitirCarnet(InterfazListaSocio ventana, ModelSocioPersona socio) { MiSocio = socio; MiVentana = ventana; InitializeComponent(); reportViewer1.ProcessingMode = ProcessingMode.Local; this.reportViewer1.LocalReport.ReportEmbeddedResource = "ProjectGimnasiaYEsgrima.Utils.Socio.rdlc"; CargarInterfazBuena(); }
public InterfazEmisionCuponPago(InterfazListaSocio ventana, Socio socio) { MiVentana = ventana; MiSocio = socio; InitializeComponent(); dgvListaCuponesSocio.AllowUserToAddRows = false; CargarInterfazBuena(); ActualizarTabla(); foreach (DataGridViewRow i in dgvListaCuponesSocio.Rows) { i.Cells["ConfirmaciĆ³n"].Value = true; } cbxFechaEmisionInicial.SelectedIndex = 0; cbxFechaEmisionFinal.SelectedIndex = 11; }