Messaging.ConfirmationDialogClosed Event

Occurs after the confirmation dialog is closed.

Namespace: DevExpress.ExpressApp.Win.Core

Assembly: DevExpress.ExpressApp.Win.v18.2.dll

Declaration

public static event EventHandler<ConfirmationDialogClosedEventArgs> ConfirmationDialogClosed
Public Shared Event ConfirmationDialogClosed As EventHandler(Of ConfirmationDialogClosedEventArgs)

Event Data

The ConfirmationDialogClosed event handler receives an argument of the ConfirmationDialogClosedEventArgs type.

Remarks

The ConfirmationDialogClosed event is raised when executing the Messaging.Show method. Handle this event to perform custom actions after the confirmation dialog is closed. Use the handler's ConfirmationDialogClosedEventArgs.DialogResult parameter to get the user choice.

static class Program {
    static void Main() {
        // ...
        Messaging.ConfirmationDialogClosed += Messaging_ConfirmationDialogClosed;
        // ...
        winApplication.Setup();
        winApplication.Start();
        // ...
    }
    static void Messaging_ConfirmationDialogClosed(\
        object sender, ConfirmationDialogClosedEventArgs e) {
        // Place your code here. Use e.DialogResult value as required.
    }
}

For more sophisticated customizations, implement a custom Messaging descendant, as detailed in the How to: Implement a Custom Messaging Class.

See Also