private void SelectConfig(SelectAssemblyWindowViewModel vm, object parameter)
        {
            var dlg = new Microsoft.Win32.OpenFileDialog();

            dlg.Filter           = "Configuration files|*.config";
            dlg.InitialDirectory = Path.GetDirectoryName(AssemblyPath);
            if (dlg.ShowDialog() == true)
            {
                ConfigPath = dlg.FileName;
            }
        }
        private void SelectAssembly(SelectAssemblyWindowViewModel vm, object parameter)
        {
            var dlg = new Microsoft.Win32.OpenFileDialog();

            dlg.Filter = "DLL, executable|*.dll;*.exe";
            if (dlg.ShowDialog() == true)
            {
                AssemblyPath = dlg.FileName;

                string configPath;
                if (ConfigurationHelper.TrySuggestConfigFile(AssemblyPath, out configPath))
                {
                    ConfigPath = configPath;
                }
                else
                {
                    ConfigPath = "";
                }
            }
        }
 private bool CanAnalyze(SelectAssemblyWindowViewModel vm, object parameter)
 {
     return(!string.IsNullOrWhiteSpace(AssemblyPath));
 }
 private void Analyze(SelectAssemblyWindowViewModel vm, object parameter)
 {
     RunAnalysis();
     CloseWindow();
 }