Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a lab wrapper item around an existing mock service, and adds it to our collection.
 /// </summary>
 /// <param name="s">Existing mock service</param>
 private void CreateLabService( ServiceInfo s )
 {
     LabServiceInfo newServiceInfo;
     if( s.Generalization != null )
     {
         LabServiceInfo generalizationLiveInfo = _labServiceInfos.GetByKey( (ServiceInfo)s.Generalization );
         newServiceInfo = new LabServiceInfo( s ); // TODO: Running requirement
     }
     else
     {
         newServiceInfo = new LabServiceInfo( s );
     }
     _labServiceInfos.Add( newServiceInfo );
 }