public ActionEventArgs(ActionEventType actionType, ActionReply reply, string message, long maxPercent, long currentPercent) { ActionType = actionType; RecievedReply = reply; Message = message; _max = maxPercent; _current = currentPercent; var dt = DateTime.Now; CurrentShortDateTime = dt.ToShortTimeString(); CurrentLongDateTime = string.Format("{0}/{1}/{2} - {3}", dt.Day.ToString("00"), dt.Month.ToString("00"), dt.Year.ToString("00"), CurrentShortDateTime); }
public ActionEventArgs(ActionReply reply) : this(ActionEventType.Success, reply, null, -1, -1) { }
public ActionEventArgs(ActionEventType actionType, ActionReply reply) : this(actionType, reply, null, -1, -1) { }