Exemplo n.º 1
0
        /// <summary></summary>
        /// <param name="shell"></param>
        /// <param name="schema"></param>
        /// <param name="xSchema"></param>
        public PpsDataSetDefinitionClient(PpsShell shell, string schema, XElement xSchema)
        {
            this.shell  = shell;
            this.schema = schema;

            // read definitions
            foreach (var c in xSchema.Elements())
            {
                if (c.Name == xnTable)
                {
                    Add(CreateDataTable(c));
                }
                else if (c.Name == xnTag)
                {
                    Add(CreateAutoTagDefinition(c));
                }
                else if (c.Name == xnMeta)
                {
                    metaInfo = new PpsDataSetMetaCollectionClient(c);
                }
            }

            // create always a meta data collection
            if (metaInfo == null)
            {
                metaInfo = new PpsDataSetMetaCollectionClient(new XElement("meta"));
            }
        }         // ctor
Exemplo n.º 2
0
        private bool isDirty = false;                     // is this document changed since the last dump

        #region -- Ctor/Dtor ----------------------------------------------------------

        /// <summary></summary>
        /// <param name="datasetDefinition"></param>
        /// <param name="shell"></param>
        public PpsDataSetClient(PpsDataSetDefinition datasetDefinition, PpsShell shell)
            : base(datasetDefinition)
        {
            this.shell = shell;
        }         // ctor