public PGeneros()
        {
            InitializeComponent();

            repo = new GenerosRepository();

            refreshGrid();
            lNombre.Tag = "Nombre";
            hideForm();
            State  = AppMAnager.STATE_NULL;
            entity = null;
        }
Exemple #2
0
        private void refreshGeneros()
        {
            _comboGenerosHint.Visibility = Visibility.Visible;
            _comboGeneros.Items.Clear();
            BtnClearGenero.Visibility = Visibility.Hidden;
            GenerosRepository repo = new GenerosRepository();
            List <genero>     list = repo.List;

            foreach (genero genero in list)
            {
                _comboGeneros.Items.Add(genero);
            }
        }
        private void SetGeneros()
        {
            GenerosRepository repo    = new GenerosRepository();
            List <string>     current = new List <string>();

            foreach (genero g in current_generos_list)
            {
                current.Add(g.nombre);
            }

            ListSelectorDialog lsd = new ListSelectorDialog(TOPIC_GENEROS, this, repo.List, current);

            lsd.ShowDialog();
        }