Beispiel #1
0
        /// <summary></summary>
        /// <param name="datasetDefinition"></param>
        public PpsDataSet(PpsDataSetDefinition datasetDefinition)
        {
            this.datasetDefinition = datasetDefinition;
            this.undoSink          = new PpsUndoManagerBase();
            this.tables            = new PpsDataTable[datasetDefinition.TableDefinitions.Count];

            for (var i = 0; i < tables.Length; i++)
            {
                tables[i] = datasetDefinition.TableDefinitions[i].CreateDataTable(this);
            }

            this.tableCollection = new TableCollection(tables);
            this.properties      = new DynamicRuntimeTable(this);
            this.eventSinks      = new List <LuaTable>();
        }         // ctor
Beispiel #2
0
        /// <summary></summary>
        /// <param name="datasetDefinition"></param>
        /// <param name="tagName"></param>
        /// <param name="tableName"></param>
        /// <param name="columnName"></param>
        /// <param name="mode"></param>
        public PpsDataSetAutoTagDefinition(PpsDataSetDefinition datasetDefinition, string tagName, string tableName, string columnName, PpsDataSetAutoTagMode mode)
        {
            if (String.IsNullOrEmpty(tagName))
            {
                throw new ArgumentNullException("tagName");
            }
            if (String.IsNullOrEmpty(tableName))
            {
                throw new ArgumentNullException("tableName");
            }
            if (String.IsNullOrEmpty(columnName))
            {
                throw new ArgumentNullException("columnName");
            }

            this.datasetDefinition = datasetDefinition ?? throw new ArgumentNullException("datasetDefinition");
            this.tagName           = tagName;
            this.tableName         = tableName;
            this.columnName        = columnName;
            this.mode = mode;
        }         // ctor
Beispiel #3
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
Beispiel #4
0
        }         // proc EndInit

        /// <summary></summary>
        /// <param name="dataset"></param>
        /// <returns></returns>
        public override PpsDataTableDefinition Clone(PpsDataSetDefinition dataset)
        => new PpsDataTableDefinitionClient((PpsDataSetDefinitionClient)dataset, this);