protected virtual void OnHostDance(HostDanceEventArgs e) { EventHandler <HostDanceEventArgs> handler = HostDance; if (handler != null) { handler(this, e); } }
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; } }
protected virtual void OnHostDance(HostDanceEventArgs e) { EventHandler<HostDanceEventArgs> handler = HostDance; if (handler != null) handler(this, e); }