Color statusColor(ReorgBlockStatus rs) { switch (rs) { case ReorgBlockStatus.Pending: return(System.Drawing.Color.LightYellow); case ReorgBlockStatus.Executing: return(System.Drawing.Color.LightSalmon); case ReorgBlockStatus.Ended: return(System.Drawing.Color.LightGreen); case ReorgBlockStatus.Error: return(System.Drawing.Color.Red); default: return(System.Drawing.Color.MidnightBlue); } }
public ReorgBlockStatusInfo(ReorgBlockStatus status, string otherInfo) { this.status = status; this.otherStatusInfo = otherInfo; }