Ejemplo n.º 1
0
        protected void RadScheduler1_AppointmentUpdate(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
        {
            int appointmentID = Convert.ToInt32(e.Appointment.ID);
            var modifiedAlert = Repository.FindOne <Alert>(o => o.ID == appointmentID);

            if (modifiedAlert == null)
            {
                return;
            }
            modifiedAlert.Description = e.ModifiedAppointment.Description;
            modifiedAlert.Subject     = e.ModifiedAppointment.Subject;
            modifiedAlert.StartDate   = e.ModifiedAppointment.Start;
            modifiedAlert.EndDate     = e.ModifiedAppointment.End;
            Repository.Update(modifiedAlert);
            Repository.UnitOfWork.SaveChanges();
            BindData();
            //          ReloadCurrentPage();
        }
Ejemplo n.º 2
0
        protected void RadScheduler1_AppointmentUpdate(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
        {
            AppointmentInfo ai = FindById(e.ModifiedAppointment.ID);

            ai.CopyInfo(e.ModifiedAppointment);
        }