예제 #1
0
        public TaskbarPanel(ILatch latch, ILogger logger, MainViewModel mainViewModel, IUiHelper uiHelper)
        {
            _log = logger;
            _mainViewModel = mainViewModel;
            _uiHelper = uiHelper;

            InitializeComponent();
            InitializeMainWindowLatch = latch;

            ViewModel = new TaskbarPanelViewModel(_mainViewModel.MyApplications.Where(a => a.Application.PinnedToTaskbar && !a.IsUnsupported).ToList());
            DataContext = ViewModel;
        }
예제 #2
0
        public TaskbarPanel(ILatch latch, ILogger logger, MainViewModel mainViewModel, IUiHelper uiHelper)
        {
            _log           = logger;
            _mainViewModel = mainViewModel;
            _uiHelper      = uiHelper;

            InitializeComponent();
            InitializeMainWindowLatch = latch;

            ViewModel   = new TaskbarPanelViewModel(_mainViewModel.MyApplications.Where(a => a.Application.PinnedToTaskbar && !a.IsUnsupported).ToList());
            DataContext = ViewModel;
        }