protected virtual void OnHostShout(HostShoutEventArgs e) { EventHandler <HostShoutEventArgs> handler = HostShout; if (handler != null) { handler(this, e); } }
protected void RaiseOnHostShout(InterceptedEventArgs e) { if (HostShout != null) { var args = new HostShoutEventArgs(e.Continuation, e.Step, e.Packet); OnHostShout(args); e.Cancel = args.Cancel; e.WasContinued = args.WasContinued; } }
protected void RaiseOnHostShout(InterceptedEventArgs e) { if (HostShout != null) { var args = new HostShoutEventArgs(e.Continuation, e.Step, e.Packet); OnHostShout(args); e.Cancel = args.Cancel; e.WasContinued = args.WasContinued; } }
protected virtual void OnHostShout(HostShoutEventArgs e) { EventHandler<HostShoutEventArgs> handler = HostShout; if (handler != null) handler(this, e); }
private void OnHostShout(HMessage obj) { try { var args = new HostShoutEventArgs(obj); if (args.Message.ToLower().Contains(":mimic ")) { var _message = args.Message.Split(' '); string UserName = _message[1]; E.MimicOtherPlayer(UserName, CurHotel); } } catch (Exception error) { MessageBox.Show(error.ToString()); } }