Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
        /// <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);
            }
        }