Наследование: System.EventArgs
Пример #1
0
        public static void PointPay(EPRPlayer sender, EPRPlayer receiver, int amount)
        {
            PointPayArgs e = new PointPayArgs();

            e.Handled  = false;
            e.Sender   = sender;
            e.Receiver = receiver;
            e.Amount   = amount;
            if (OnPointPay != null)
            {
                OnPointPay(e);
            }
        }
Пример #2
0
 public void OnPointPay(PointPayArgs e)
 {
     if (!e.Handled)
     {
         string[] EPRLog = new string[1];
         EPRLog[0] = string.Format("{0}: {1} paid {2} {3}(s) to {4}", DateTime.Now.ToString(), e.Sender.Username, e.Amount, currname, e.Receiver.Username);
         File.AppendAllLines(EPRLogSavePath, EPRLog);
         EPREvents.PointUse(e.Sender, e.Amount, PointUsage.SentPayment);
         EPREvents.PointOperate(e.Sender, e.Amount,PointOperateReason.ReceivedPayment);
         e.Handled = true;
     }
 }
Пример #3
0
 public static void PointPay(EPRPlayer sender, EPRPlayer receiver, int amount)
 {
     PointPayArgs e = new PointPayArgs();
     e.Handled = false;
     e.Sender = sender;
     e.Receiver = receiver;
     e.Amount = amount;
     if (OnPointPay != null)
         OnPointPay(e);
 }