Example #1
0
        bool OnModalPopping(Page modalPage)
        {
            var args = new ModalPoppingEventArgs(modalPage);

            ModalPopping?.Invoke(this, args);
            return(args.Cancel);
        }
Example #2
0
        bool OnModalPopping(Page modalPage)
        {
            EventHandler <ModalPoppingEventArgs> handler = ModalPopping;
            var args = new ModalPoppingEventArgs(modalPage);

            if (handler != null)
            {
                handler(this, args);
            }
            return(args.Cancel);
        }