Ejemplo n.º 1
0
        public void InsertProgram(DataModel.Program prgm)
        {
            ProgramBll prgramBll = new ProgramBll();
            int        resul     = prgramBll.InsertProgram(prgm);

            if (resul > 0)
            {
                MessageBox.Show("Successfully saved.");
                ClearProgram(prgm);
            }
        }
Ejemplo n.º 2
0
        public IEnumerable <DataModel.Program> GetAllPrograms()
        {
            ProgramBll programBll = new ProgramBll();

            return(programBll.RetrieveAllPrograms());
        }