Esempio n. 1
0
 public void LlenarListaRol(IEnumerable <Rol> Lista)
 {
     try
     {
         foreach (var item in Lista)
         {
             ListaRol.Add(item);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        public async Task LlenarListaRol()
        {
            try
            {
                var listaRol = await RolRepository.GetComboRol();

                foreach (var item in listaRol)
                {
                    ListaRol.Add(item);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 3
0
        private void rolToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ListaRol f = new ListaRol(_db, _username);

            f.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            ListaRol listaRol = new ListaRol(_dbm);

            listaRol.Show();
        }