public void InsertProgram(DataModel.Program prgm)
        {
            ProgramBll prgramBll = new ProgramBll();
            int        resul     = prgramBll.InsertProgram(prgm);

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

            return(programBll.RetrieveAllPrograms());
        }