Ejemplo n.º 1
0
        private void LoadProgramDetails(int programID)
        {
            CommonDBOperations <Program> programs = new CommonDBOperations <Program>(_context);
            Program program_record = programs.GetAllRecords().Single(p => p.ProgramID == programID);

            if (program_record != null)
            {
                ProgramName.Text  = program_record.Name;
                Description.Text  = program_record.Desc;
                StartTime.Text    = Convert.ToString(TimeConversion.GetLocalProgramTime(program_record.StartTime));
                EndTime.Text      = Convert.ToString(TimeConversion.GetLocalProgramTime(program_record.EndTime));
                ProgramImage.Text = "<img src='" + program_record.ProgramImage + "'/>";
            }
        }