Example #1
0
        /// <summary>Construct, adding the records from the provided recordset.</summary>
        /// <param name="rs"></param>
        public EditableObjectList(BookmarkedRecordset <tRow> rs)
        {
            m_table = rs.cursor;
            foreach (var r in rs.all())
            {
                base.Add(r);
            }

            base.AllowNew = true;
        }
Example #2
0
        /// <summary>Construct, adding all records from the specified table.</summary>
        /// <param name="sess"></param>
        public EditableObjectList(iSerializerSession sess)
        {
            m_table = sess.Cursor <tRow>();
            var bl = new BookmarkedRecordset <tRow>(m_table);

            foreach (var r in bl.all())
            {
                base.Add(r);
            }

            base.AllowNew = true;
        }