/// /// Copyright (c) 2013-2015 Sensus Metering Systems /// using System; namespace TBF.UiBridge { public class ActivityEventArgs : EventArgs { public enum Update { All, Activity, Message }; public Update Cmd; /// specifies what should be updated, makes it possible to update just one field public string Activity; /// activity text public string Message; /// message text public bool ErrorMsg; /// true = use red color to print the message public ActivityEventArgs(Update cmd, string activity, string message, bool errorMsg) { this.Cmd = cmd; this.Activity = activity; this.Message = message; this.ErrorMsg = errorMsg; } } }