Esempio n. 1
0
        public static RowCollection Create(RowConf header, params RowConf[] data)
        {
            var c = new RowCollection();

            c.Import(header);
            foreach (var item in data)
            {
                c.Import(item);
            }
            return(c);
        }
Esempio n. 2
0
        public static RowCollection Create(string[][] data)
        {
            var c = new RowCollection();

            foreach (var item in data)
            {
                c.Import(RowConf.Create(item));
            }
            return(c);
        }
Esempio n. 3
0
        public RowCollection Clone(bool includeitems)
        {
            var c = new RowCollection()
            {
                Settings       = this.Settings,
                length         = this.length,
                IsCustomLength = this.IsCustomLength
            };

            if (includeitems)
            {
                this.Items.ForEach(v => c.Import(v.Clone(false)));
            }

            return(c);
        }