Exemplo n.º 1
0
        public AddServiceWindow( ICKObservableReadOnlyCollection<IServiceInfo> availableServices, IServiceInfo selectedService = null )
        {
            AvailableServices = availableServices;

            this.DataContext = this;

            if( selectedService != null )
            {
                SelectedGeneralization = selectedService;
            }

            InitializeComponent();

            this.NewServiceNameTextBox.Focus();
        }
Exemplo n.º 2
0
        public AddServiceWindow(ICKObservableReadOnlyCollection <IServiceInfo> availableServices, IServiceInfo selectedService = null)
        {
            AvailableServices = availableServices;

            this.DataContext = this;

            if (selectedService != null)
            {
                SelectedGeneralization = selectedService;
            }

            InitializeComponent();

            this.NewServiceNameTextBox.Focus();
        }
Exemplo n.º 3
0
        public AddPluginWindow(ICKObservableReadOnlyCollection <IServiceInfo> availableServices, IServiceInfo selectedService = null)
        {
            _serviceReferences = new Dictionary <IServiceInfo, DependencyRequirement>();
            AvailableServices  = availableServices;

            if (selectedService != null && availableServices.Count > 0)
            {
                SelectedService = selectedService;
            }

            this.DataContext = this;

            InitializeComponent();

            this.NewPluginNameTextBox.Focus();
        }
Exemplo n.º 4
0
        public AddPluginWindow( ICKObservableReadOnlyCollection<IServiceInfo> availableServices, IServiceInfo selectedService = null )
        {
            _serviceReferences = new Dictionary<IServiceInfo, DependencyRequirement>();
            AvailableServices = availableServices;

            if( selectedService != null && availableServices.Count > 0 )
            {
                SelectedService = selectedService;
            }

            this.DataContext = this;

            InitializeComponent();

            this.NewPluginNameTextBox.Focus();
        }
Exemplo n.º 5
0
        internal YodiiGraph(IConfigurationManager configManager, LabStateManager serviceManager)
            : base()
        {
            Debug.Assert(serviceManager != null);
            Debug.Assert(configManager != null);

            _serviceInfos         = serviceManager.LabServiceInfos;
            _pluginInfos          = serviceManager.LabPluginInfos;
            _configurationManager = configManager;
            _serviceManager       = serviceManager;

            _serviceInfos.CollectionChanged            += _serviceInfos_CollectionChanged;
            _pluginInfos.CollectionChanged             += _pluginInfos_CollectionChanged;
            _configurationManager.ConfigurationChanged += _configurationManager_ConfigurationChanged;

            UpdateVerticesWithConfiguration(_configurationManager.FinalConfiguration);
        }