private void SelectionChangedTipoEvento() { if (cboTipoEvento.SelectedValue == null) { cboTipoEventoNombre.ItemsSource = null; } else { int evento = int.Parse(cboTipoEvento.SelectedValue.ToString()); cboTipoEventoNombre.ItemsSource = null; cboTipoEventoNombre.ItemsSource = ModalidadServicioCollection.BuscarModalidad(evento); } }
private void SelectionChangedModalidad() { if (cboTipoEventoNombre.SelectedValue == null) { txtAsistentes.Text = null; txtPersonalAdicional.Text = null; } else { string evento = cboTipoEventoNombre.SelectedValue.ToString(); txtPersonalBase.Text = ModalidadServicioCollection.personalBase(evento).ToString(); } }