public TearedShellViewModel( IInterTabClient interTabClient, IInterLayoutClient interLayoutClient) { InterTabClient = interTabClient; InterLayoutClient = interLayoutClient; }
public ShellViewModel( IInterTabClient interTabClient, IInterLayoutClient interLayoutClient) { InterTabClient = interTabClient; InterLayoutClient = interLayoutClient; Items.Add(new TabContentViewModel(1)); Items.Add(new TabContentViewModel(2)); Items.Add(new TabContentViewModel(3)); }
public MainWindow(IKernel kernel, IGameConnection connection, IInterTabClient interTab, IInterLayoutClient interLayout, IProjectManager projectManager) { _kernel = kernel; _connection = connection; _interTabClient = interTab; _interLayoutClient = interLayout; _projectManager = projectManager; InitializeComponent(); Loaded += WindowLoaded; }
public ShellViewModel( IInterTabClient caliburnInterTabClient, IInterLayoutClient caliburnInterLayoutClient, ISnackbarMessageQueue mainMessageQueue, IConfigurationService configurationService, IEventAggregator eventAggregator, MenuViewModel menuViewModel) { CaliburnInterTabClient = caliburnInterTabClient; CaliburnInterLayoutClient = caliburnInterLayoutClient; MainMessageQueue = mainMessageQueue; MenuViewModel = menuViewModel; _configurationService = configurationService; eventAggregator.Subscribe(this); Users = new BindableCollection <User>(_configurationService.Configurations.Select(c => new User { Configuration = c })); _selectedUser = Users.SingleOrDefault(u => u.Name == _configurationService.ActiveConfiguration.Name); NotifyOfPropertyChange(() => SelectedUser); }
public PlcComViewModel(IEventAggregator events, IPlcComManager plcComManager, IMapper mapper, IInterTabClient interTabClient, IInterLayoutClient interLayoutClient) { _events = events; _plcComManager = plcComManager; _mapper = mapper; InterTabClient = interTabClient; InterLayoutClient = interLayoutClient; _plcComManager.AboutToLoadConfigs += OnConfigsAboutToBeLoaded; _plcComManager.ConfigsLoaded += OnConfigsLoaded; this.ConnectionsViewModel = new ConnectionsViewModel(_events); this.SignalSelectionViewModel = new SignalSelectionViewModel(_events); this.SignalSelectionViewModel.SignalSelected += OnSignalSelected; this.SignalSelectionViewModel.DatablockSelected += OnDatablockSelected; this.SignalSelectionViewModel.GraphViewSelected += OnGraphViewSelected; _events.Subscribe(this); }