private void BacktestFileTextBox_MouseDown(object sender, MouseButtonEventArgs e) { var window = new BacktestImportWindow(); window.ShowDialog(); if (!window.Canceled) { //quite ugly, but eh... BacktestFileTextBox.Text = window.ViewModel.FilePath; ViewModel.PerformanceReportPageViewModel.ReportSettings.BacktestData = window.ViewModel.EquityCurve; } }