Ejemplo n.º 1
0
        public static string[] PrintColumnHeading()
        {
            string line1 = null;
            string line2 = null;

            {
                var lb = new BlankFillLineBuilder();
                lb.Put("-- from --", 0);
                lb.Put("-- End ---", 33);
                line1 = lb.ToString();
            }

            {
                var lb = new BlankFillLineBuilder();
                lb.Put("Row", 0);
                lb.Put("Col", 5);
                lb.Put("ItemType", 10);
                lb.Put("Lgth", 20);
                lb.Put("dspatr", 26);
                lb.Put("Row", 33);
                lb.Put("Col", 38);
                lb.Put("Text", 43);
                lb.Put("FFW and FCW", 70);
                line2 = lb.ToString();
            }

            return(new string[] { line1, line2 });
        }
Ejemplo n.º 2
0
        public string ToDetailLine()
        {
            var lb = new BlankFillLineBuilder();

            lb.Put(this.RowCol.RowNum.ToString().RightJustify(3), 0);
            lb.Put(this.RowCol.ColNum.ToString().RightJustify(3), 5);
            lb.Put(this.ItemType.ToString(), 10, 9);

            lb.Put(this.ItemLgth.NullEmptyString().RightJustify(4), 20);

            var daArray = this.AttrByte.ToColorDsplyAttr();

            lb.Put(daArray.ToText( ), 26);

            if (this.EndRowCol != null)
            {
                lb.Put(this.EndRowCol.RowNum.ToString().RightJustify(3), 33);
                lb.Put(this.EndRowCol.ColNum.ToString().RightJustify(3), 38);
            }

            lb.Put(this.ItemText.EmptyIfNull(), 43);
            if (this.ffw != null)
            {
                lb.Put(this.ffw.ToHex(' '), 70);
            }
            return(lb.ToString());
        }