コード例 #1
0
        public ConnectionManagerVisualComponent(IConnectionManager connectionManager, IVisualComponentContainer <IConnectionManagerVisualComponent> container, ICoreShell coreShell)
        {
            _viewModel = new ConnectionManagerViewModel(connectionManager, coreShell);
            Container  = container;
            Controller = null;
            var control = new ConnectionManagerControl {
                DataContext = _viewModel
            };

            Control = control;
        }
コード例 #2
0
        public ConnectionManagerVisual(IConnectionManager connectionManager, IVisualComponentContainer <IConnectionManagerVisual> container, IServiceContainer services)
        {
            _viewModel = new ConnectionManagerViewModel(connectionManager, services);
            Container  = container;
            var control = new ConnectionManagerControl(services)
            {
                DataContext = _viewModel
            };

            Control = control;
        }
コード例 #3
0
        public ConnectionManagerVisualComponent(IConnectionManager connectionManager, IVisualComponentContainer <IConnectionManagerVisualComponent> container, IRSettings settings, ICoreShell coreShell)
        {
            _viewModel = new ConnectionManagerViewModel(connectionManager, settings, coreShell);
            Container  = container;
            var control = new ConnectionManagerControl(coreShell)
            {
                DataContext = _viewModel
            };

            Control = control;
        }