Ejemplo n.º 1
0
        public string Build(string message, string command, LineEnum liner)
        {
            switch (liner)
            {
            case LineEnum.NoLine:
                message += command;
                break;

            case LineEnum.FirstLine:
                message = message + Line + command;
                break;

            case LineEnum.LastLine:
                message = message + command + Line;
                break;

            case LineEnum.FullLine:
                message = message + Line + command + Line;
                break;

            case LineEnum.Tab:
                message = message + Tab + command;
                break;

            case LineEnum.FirstLineWithTab:
                message = message + Line + Tab + command;
                break;

            case LineEnum.FullLineWithTab:
                message = message + Line + Tab + command + Line;
                break;

            case LineEnum.FirstLineWith2LastLine:
                message = message + Line + command + Line + Line;
                break;

            default:
                throw new Exception("Not Support");
            }

            return(message);
        }
Ejemplo n.º 2
0
 public void AppendAfterCommit(string command, LineEnum liner = LineEnum.NoLine)
 {
     AfterCommit = Build(AfterCommit, command, liner);
 }
Ejemplo n.º 3
0
 public Line(LineEnum lineType)
 {
     _lineType       = lineType;
     BackgroundColor = Color.Black;
     Initialize();
 }
Ejemplo n.º 4
0
 public void AppendBody(string command, LineEnum liner = LineEnum.NoLine)
 {
     Body = Build(Body, command, liner);
 }
Ejemplo n.º 5
0
 public Line(LineEnum lineType, Color color)
 {
     _lineType       = lineType;
     BackgroundColor = color;
     Initialize();
 }