예제 #1
0
 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.");
     }
 }
예제 #2
0
        //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"];
            }
        }
예제 #3
0
 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.");
     }
 }
예제 #4
0
 private void tryComparePaths()
 {
     DataContext = _vm = new QuickScanVM(_vm.Paths);
 }