Exemplo n.º 1
0
 private void dgvTotal_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex >= 0 && e.RowIndex >= 0)
     {
         DailyProgram pro = dgvTotal.Rows[e.RowIndex].DataBoundItem as DailyProgram;
         if (e.ColumnIndex == ColumnTotalSendState.Index)
         {
             pro.SendState = !pro.SendState;
             (MdiParent as EBMMain).InitStreamTable();
         }
     }
 }
        public bool CreateDailyProgram(DailyProgramDTO dailyProgramDTO)
        {
            var dailyProgramDb = new DailyProgram
            {
                Theme       = dailyProgramDTO.Theme,
                Description = dailyProgramDTO.Description,
                TourId      = dailyProgramDTO.TourId
            };

            Database.DailyPrograms.Create(dailyProgramDb);

            return(Database.Save());
        }