static void AppointmentFormatStringServiceAction(SchedulerControl scheduler)
 {
     #region #AppointmentFormatStringService
     IAppointmentFormatStringService oldService = scheduler.GetService <IAppointmentFormatStringService>();
     if (oldService != null)
     {
         MyAppointmentFormatStringService newService = new MyAppointmentFormatStringService(oldService);
         scheduler.RemoveService(typeof(IAppointmentFormatStringService));
         scheduler.AddService(typeof(IAppointmentFormatStringService), newService);
     }
     scheduler.ActiveView.LayoutChanged();
     #endregion #AppointmentFormatStringService
 }
Exemplo n.º 2
0
 public void CreateAppointmentFormatStringService()
 {
     this.prevAppointmentFormatStringService   = (IAppointmentFormatStringService)ASPxScheduler1.GetService(typeof(IAppointmentFormatStringService));
     this.customAppointmentFormatStringService = new CustomAppointmentFormatStringService(prevAppointmentFormatStringService);
 }
 public MyAppointmentFormatStringService(IAppointmentFormatStringService service)
     : base(service)
 {
 }