Exemplo n.º 1
0
        private void ShowUpdateDialogAndReloadSolution(string root)
        {
            var dte = GetService(typeof(SDTE)) as DTE;

            var solutionFileName = VisualHgSolution.SolutionFileName;

            dte.Solution.Close();

            WaitForExit(TortoiseHg.ShowUpdateWindow(root));

            dte.Solution.Open(solutionFileName);
        }
Exemplo n.º 2
0
        private void ShowUpdateWindow(object sender, EventArgs e)
        {
            var root = VisualHgSolution.CurrentRootDirectory;

            if (!CanRunTortoiseHg(root))
            {
                return;
            }

            if (IsReloadSolutionNeeded())
            {
                ShowUpdateDialogAndReloadSolution(root);
            }
            else
            {
                TortoiseHg.ShowUpdateWindow(root);
            }
        }