private void listView2_SelectionChanged(object sender, SelectionChangedEventArgs e) { DownloadQueueViewModel vm = DataContext as DownloadQueueViewModel; if (null != vm) { vm.SelectedItems = listView2.SelectedItems; } }
/// <summary> /// The Test. /// </summary> /// <param name="testWindow">The testWindow<see cref="Window"/>.</param> protected override void Test(Window testWindow) { var globalBrowserData = new GlobalBrowserData(); var viewModel = new DownloadQueueViewModel(globalBrowserData.DownloadItemModels); var view = new DownloadQueueView { DataContext = viewModel }; WindowFactory.CreateAndShow(view, testWindow); }
public void Show_DownloadQueueView() { var globalBrowserData = new GlobalBrowserData(); var viewModel = new DownloadQueueViewModel(globalBrowserData.DownloadItemModels); this.CreateDummyOperations(viewModel.DownloadItemModels, viewModel.OnPauseDownloadCalled); var view = new DownloadQueueView { DataContext = viewModel }; WindowFactory.CreateAndShow(view); }
public DownloadQueueController(DownloadQueueViewModel vm, Model model) { this.vm = vm; this.model = model; }
public DownloadQueueController(DownloadQueueViewModel vm, Model model) { this.vm = vm; this.model = model; }