Пример #1
0
        /// <summary>
        /// Creates a new service vertex.
        /// </summary>
        /// <param name="parentGraph"></param>
        /// <param name="service"></param>
        internal YodiiGraphVertex(YodiiGraph parentGraph, LabServiceInfo service)
            : this()
        {
            Debug.Assert(parentGraph != null);
            Debug.Assert(service != null);

            _isPlugin    = false;
            _liveService = service;
            _parentGraph = parentGraph;

            _liveService.ServiceInfo.PropertyChanged += StaticInfo_PropertyChanged;
            _liveService.PropertyChanged             += _labService_PropertyChanged;
        }
Пример #2
0
        /// <summary>
        /// Creates a new plugin vertex.
        /// </summary>
        /// <param name="parentGraph"></param>
        /// <param name="plugin"></param>
        internal YodiiGraphVertex(YodiiGraph parentGraph, LabPluginInfo plugin)
            : this()
        {
            Debug.Assert(parentGraph != null);
            Debug.Assert(plugin != null);

            _isPlugin    = true;
            _livePlugin  = plugin;
            _parentGraph = parentGraph;

            _livePlugin.PluginInfo.PropertyChanged += StaticInfo_PropertyChanged;
            _livePlugin.PropertyChanged            += _labPlugin_PropertyChanged;
        }