Beispiel #1
0
 private void ProcessTip(string Message)
 {
     ReceivedTip tmp = new ReceivedTip();
     Message = Message.Replace("INFO: you received a ", "");
     tmp.Amount = double.Parse(Message.Substring(0, Message.IndexOf("CLAM") - 1), System.Globalization.CultureInfo.InvariantCulture);
     Message = Message.Substring(tmp.Amount.ToString().Length+ " CLAM tip from (".Length);
     tmp.FromID = int.Parse(Message.Substring(0, Message.IndexOf(")")));
     tmp.FromUser = Message.Substring(Message.IndexOf(" ") + 1);
     if (OnTipReceived != null)
     {
         OnTipReceived(tmp);
     }
 }
Beispiel #2
0
 void JD_OnTipReceived(ReceivedTip Tip)
 {
 }