public NetTransferNotifyMsg(ENetTransferStatus status, string Batchno, string msg, double speed = 0.0, double percent = 0.0) { this.Msg = msg; this.Status = status; this.CurBatchNO = Batchno; this.Speed = speed; this.Percent = percent; }
public void ReportMsg(ENetTransferStatus status, string batchno, string msg, double speed = 0.0, double pencent = 0.0) { bool flag = this.OnNotify != null; if (flag) { this.OnNotify(this, new TEventArg <NetTransferNotifyMsg>(new NetTransferNotifyMsg(status, batchno, msg, speed, pencent))); } }