/// <summary> /// The Test. /// </summary> /// <param name="testWindow">The testWindow<see cref="Window"/>.</param> protected override void Test(Window testWindow) { var viewModel = new AboutViewModel(); var view = new AboutView { DataContext = viewModel }; WindowFactory.CreateAndShow(view, testWindow); }
public void Show_AboutView() { var viewModel = new AboutViewModel(); var view = new AboutView { DataContext = viewModel }; WindowFactory.CreateAndShow(view); }
/// <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); }
/// <summary> /// The Test. /// </summary> /// <param name="testWindow">The testWindow<see cref="Window"/>.</param> protected override void Test(MetroWindow testWindow) { var globalData = new GlobalData { MainWindow = testWindow }; var viewModel = new BarChartViewModel(globalData); var view = new BarChartView { DataContext = viewModel }; this.GenerateDummyData(viewModel); WindowFactory.CreateAndShow(view, testWindow); }
/// <summary> /// The Test. /// </summary> /// <param name="testWindow">The testWindow<see cref="Window"/>.</param> protected override void Test(MetroWindow testWindow) { var globalData = new GlobalData { MainWindow = testWindow }; var viewModel = new DatasetViewModel(globalData) { CsvFilePath = TestData.CountryTestCsv }; var view = new DatasetView { DataContext = viewModel }; WindowFactory.CreateAndShow(view, testWindow); }
/// <summary> /// The Test. /// </summary> /// <param name="testWindow">The testWindow<see cref="Window"/>.</param> protected override void Test(Window testWindow) { var urlReader = new UrlReader(); var settings = new SettingsViewModel(); var viewModelA = new UrlEditorViewModel(urlReader, settings) { IsVisible = true, FileName = "Youtube Video File Name", FileSize = "5 MB", Duration = "00:02:45" }; var viewModelB = new UrlEditorViewModel(urlReader, settings) { IsVisible = true, FileName = "Youtube Video File Name", FileSize = "1.4 MB", Duration = "00:02:45", IsBusy = true }; var stackPanel = new StackPanel(); stackPanel.Children.Add(new UrlEditorView { DataContext = viewModelA }); stackPanel.Children.Add(new UrlEditorView { DataContext = viewModelB }); WindowFactory.CreateAndShow(stackPanel, testWindow); }