public void HistoryRight() { try { string appPath = _tfsPath_; string filePath = getRightPath(); string target = "history \"" + filePath + "\" /recursive" + QuickScanVM.GetFilters(); System.Diagnostics.Process.Start(appPath, target); } catch (Exception ex) { MessageBox.Show(ex.Message, "Sorry, TFS History failed."); } }
//private Paths paths; public MainWindow() { InitializeComponent(); DataContext = _vm = new QuickScanVM(); string[] args = Environment.GetCommandLineArgs(); _window = this; if (args.Length > 1) { _vm.LeftPath = args[1].Replace("\"", "").Trim(); if (args.Length > 2) { _vm.RightPath = args[2].Replace("\"", "").Trim(); } } else { _vm.LeftPath = (string)Settings.Default["LeftFolderPath"]; _vm.RightPath = (string)Settings.Default["RightFolderPath"]; } }
internal void FolderHistoryRight() { try { string appPath = FileComparison._tfsPath_; string target = "history \"" + CurrentPaths.Right + "\" /recursive" + QuickScanVM.GetFilters(); System.Diagnostics.Process.Start(appPath, target); } catch (Exception ex) { MessageBox.Show(ex.Message, "Sorry, TFS History failed."); } }
private void tryComparePaths() { DataContext = _vm = new QuickScanVM(_vm.Paths); }