Ejemplo n.º 1
0
        public void SetDataSource(IEventDataSource dataSource)
        {
            if (this.dataSource != null)
            {
                this.dataSource.DataChanged             -= OnDataChanged;
                this.dataSelection.SelectedNodesChanged -= OnSelectedNodesChanged;
            }

            this.dataSource              = dataSource;
            this.dataSource.DataChanged += OnDataChanged;

            this.dataSelection = dataSource as IEventDataSelection;
            if (this.dataSelection == null)
            {
                this.dataSelection = new DefaultEventDataSelection(dataSource);
            }

            this.dataSelection.SelectedNodesChanged += OnSelectedNodesChanged;

            ProcessNodes();
        }
Ejemplo n.º 2
0
 public DefaultEventDataSelection(IEventDataSource source)
 {
     this.source = source;
     this.source.SelectionChangedExternal += OnSourceSelectionChangedExternal;
 }
        public void SetDataSource(IEventDataSource dataSource)
        {
            if (this.dataSource != null)
            {
                this.dataSource.DataChanged -= OnDataChanged;
                this.dataSelection.SelectedNodesChanged -= OnSelectedNodesChanged;
            }

            this.dataSource = dataSource;
            this.dataSource.DataChanged += OnDataChanged;

            this.dataSelection = dataSource as IEventDataSelection;
            if (this.dataSelection == null)
            {
                this.dataSelection = new DefaultEventDataSelection(dataSource);
            }

            this.dataSelection.SelectedNodesChanged += OnSelectedNodesChanged;

            ProcessNodes();
        }
 public DefaultEventDataSelection(IEventDataSource source)
 {
     this.source = source;
     this.source.SelectionChangedExternal += OnSourceSelectionChangedExternal;
 }
Ejemplo n.º 5
0
 public HomeController(IEventDataSource dataSource)
 {
     _db = dataSource;
 }