Пример #1
0
        public void SetItems()
        {
            var newCollection = new ObservableCollection <INodeWrapper>();

            // Logic
            var logic = new PageCollectionItem(this, RuntimeApplication.Logic);

            logic.Edited += new EditedHandler(Logic_Edited);
            newCollection.Add(logic);

            // DeviceConfiguration
            var dc = new DeviceConfigurationItem(this, RuntimeApplication.DeviceConfiguration);

            dc.Edited += new EditedHandler(DeviceConfiguration_Edited);
            newCollection.Add(dc);

            Items = newCollection;
        }
        public void SetItems()
        {
            var newCollection = new ObservableCollection<INodeWrapper>();

            // Logic
            var logic = new PageCollectionItem(this, RuntimeApplication.Logic);
            logic.Edited += new EditedHandler(Logic_Edited);
            newCollection.Add(logic);

            // DeviceConfiguration
            var dc = new DeviceConfigurationItem(this, RuntimeApplication.DeviceConfiguration);
            dc.Edited += new EditedHandler(DeviceConfiguration_Edited);
            newCollection.Add(dc);

            Items = newCollection;
        }