Exemple #1
0
        protected virtual void OnHostDance(HostDanceEventArgs e)
        {
            EventHandler <HostDanceEventArgs> handler = HostDance;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
        protected void RaiseOnHostDance(InterceptedEventArgs e)
        {
            if (HostDance != null)
            {
                var args = new HostDanceEventArgs(e.Continuation, e.Step, e.Packet);
                OnHostDance(args);

                e.Cancel       = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }
Exemple #3
0
 protected virtual void OnHostDance(HostDanceEventArgs e)
 {
     EventHandler<HostDanceEventArgs> handler = HostDance;
     if (handler != null) handler(this, e);
 }
Exemple #4
0
        protected void RaiseOnHostDance(InterceptedEventArgs e)
        {
            if (HostDance != null)
            {
                var args = new HostDanceEventArgs(e.Continuation, e.Step, e.Packet);
                OnHostDance(args);

                e.Cancel = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }