using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SharePointProducts.CopyMove.Samples.CustomDialog
{
    public class CustomEventReceiver : CopyMoveEventReceiver
    {
        public override void OnBeforeTransaction(CopyMoveEventProperties properties)
        {            
            if (properties.Operation == CopyMoveOperation.Move)
            {
                properties.RedirectUrl = "_layouts/15/CopyMoveSamples/CustomDialog.aspx";
            }
        }
    }
}
