Esempio n. 1
0
        public Workplace(string name, FileInfo info)
        {
            // Initialize simulated multiple-inheritance helpers
            serializableObject = new SerializableObject<Workplace>(this);
            sinapseDocument = new SinapseDocument(name, info);

            //        documents = new SinapseDocumentInfoCollection();
            //        documents.ListChanged += new ListChangedEventHandler(workplaceItemsListChanged);
        }
Esempio n. 2
0
        public Workplace(string name, FileInfo info)
        {
            // Initialize simulated multiple-inheritance helpers
            serializableObject = new SerializableObject <Workplace>(this);
            sinapseDocument    = new SinapseDocument(name, info);

            //        documents = new SinapseDocumentInfoCollection();
            //        documents.ListChanged += new ListChangedEventHandler(workplaceItemsListChanged);
        }
Esempio n. 3
0
        /// <summary>
        ///   Creates a new Table Data Source object.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="info"></param>
        public TableDataSource(String name, System.IO.FileInfo info)
        {
            // Initialize simulated multiple-inheritance helpers
            this.serializableObject = new SerializableObject<TableDataSource>(this);
            this.sinapseDocument = new SinapseDocument(name, info);

            this.dataTable = new DataTable(name);
            this.Name = name;

            // Create the extra two columns for storing the Set and Subset
            createExtendedColumns();

            HasChanges = true;

            this.dataTable.ColumnChanged+= dataTable_Changed;
            this.dataTable.RowChanged += dataTable_Changed;
            this.dataTable.TableCleared += dataTable_Changed;
        }