Ejemplo n.º 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.");
     }
 }
Ejemplo n.º 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"];
            }
        }
Ejemplo n.º 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.");
     }
 }
Ejemplo n.º 4
0
 private void tryComparePaths()
 {
     DataContext = _vm = new QuickScanVM(_vm.Paths);
 }