Demo entry 6344670

А

   

Submitted by anonymous on Jan 22, 2017 at 03:43
Language: C#. Code size: 535 Bytes.

        public delegate void BeforeSelectHandler(object sender, CancelEventArgs args);
        [Description("Событие, возникающее до выбора"),Category("Action")]
        public event BeforeSelectHandler BeforeSelect;
        public Boolean OnBeforeSelect(){
            Boolean result = false;
            if(BeforeSelect != null){
                CancelEventArgs args = new CancelEventArgs();
                BeforeSelect(this, args);
                result = args.Cancel;
            }
            return result;
        }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).