示例#1
0
        private void ShowResult()
        {
            var tbl = new TextTable();
            var row = tbl.NewRow();

            foreach (var t in new string[] { "Track", "DeviceNo", "ChannelNo", "Tick", "Loop" })
            {
                row.AddCell(t);
            }
            tbl.UserWidth[0] = 15;
            tbl.UserWidth[3] = 10;
            tbl.UserWidth[4] = 10;
            foreach (var trk in Song.TrackWorkList)
            {
                row = tbl.NewRow();
                row.AddCell(trk.TrackName);
                row.AddCell(trk.DeviceNo.ToString());
                row.AddCell(trk.ChannelNo.ToString());
                row.AddCell(trk.Track.TotalTick.ToString());
                row.AddCell(trk.Track.LoopTick.ToString());
            }

            tbl.ShowTable();
        }