/// <summary> /// Handles the after close callback. /// </summary> /// <param name="args"></param> /// <returns></returns> protected async Task AfterCloseHandler(MouseEventArgs args) { if (AfterClose.HasDelegate) { await AfterClose.InvokeAsync(args); } }
/// <summary> /// Handles the close callback. /// </summary> /// <param name="args"></param> /// <returns></returns> protected async Task OnCloseHandler(MouseEventArgs args) { if (OnClose.HasDelegate) { await OnClose.InvokeAsync(args); } await PlayMotion(); if (AfterClose.HasDelegate) { await AfterClose.InvokeAsync(args); } }