Exemplo n.º 1
0
        /// <summary>
        /// Inseri novo(a) Horario na lista
        /// </summary>
        /// <returns></returns>
        public override bool Inserir()
        {
            try
            {
                bool ok = horario.Inserir();
                if (ok)
                {
                    lista.Add(horario.Control.ID);
                    Indice = lista.Count - 1;
                }

                return(ok);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }