Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public ReorgBlockStatusInfo(ReorgBlockStatus status, string otherInfo)
 {
     this.status          = status;
     this.otherStatusInfo = otherInfo;
 }