コード例 #1
0
ファイル: TaskbarPanel.xaml.cs プロジェクト: artgo/CefSharp
        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;
        }