Beispiel #1
0
        protected virtual void OnHostShout(HostShoutEventArgs e)
        {
            EventHandler <HostShoutEventArgs> handler = HostShout;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
 protected virtual void OnHostShout(HostShoutEventArgs e)
 {
     EventHandler<HostShoutEventArgs> handler = HostShout;
     if (handler != null) handler(this, e);
 }
Beispiel #5
0
 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());
     }
 }