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 }
public void CreateAppointmentFormatStringService() { this.prevAppointmentFormatStringService = (IAppointmentFormatStringService)ASPxScheduler1.GetService(typeof(IAppointmentFormatStringService)); this.customAppointmentFormatStringService = new CustomAppointmentFormatStringService(prevAppointmentFormatStringService); }
public MyAppointmentFormatStringService(IAppointmentFormatStringService service) : base(service) { }