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; }
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; }
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; }