Skip to main content

NotificationsProvider.CustomizeAppointmentMapping Event

Occurs when the NotificationsProvider is initialized by the scheduler storage (Windows Forms).

Namespace: DevExpress.ExpressApp.Scheduler

Assembly: DevExpress.ExpressApp.Scheduler.v25.2.dll

NuGet Package: DevExpress.ExpressApp.Scheduler

Declaration

public event EventHandler<CustomizeAppointmentMappingEventArgs> CustomizeAppointmentMapping

Event Data

The CustomizeAppointmentMapping event's data class is DevExpress.ExpressApp.Scheduler.CustomizeAppointmentMappingEventArgs.

Remarks

Handle this event to change the list of data source fields that is used in the NotificationsProvider in your Windows Forms application. To subscribe to CustomizeAppointmentMapping, override the Setup method of the MySolution\Module project.

using DevExpress.ExpressApp.Scheduler;
// ...
public sealed partial class MySolutionModule : ModuleBase {
    //...
    public override void Setup(ApplicationModulesManager moduleManager) {
        base.Setup(moduleManager);
        //...
        NotificationsProvider notificationsProvider = (NotificationsProvider)moduleManager.Modules.FindModule<SchedulerModuleBase>().NotificationsProvider;
        notificationsProvider.CustomizeAppointmentMapping += NotificationsProvider_CustomizeAppointmentMapping;
    }
    private void NotificationsProvider_CustomizeAppointmentMapping(object sender, DevExpress.ExpressApp.Scheduler.CustomizeAppointmentMappingEventArgs e) {
        e.AppointmentMappingInfo.ResourceId = null;
    }
}

Note

To customize appointment mappings in an XAF ASP.NET Core Blazor application, use the OnSchedulerDataStorageCreated event. For more information, refer to the following topic: How to: Customize Status and Label Properties.

See Also