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); }
private void ShowUpdateWindow(object sender, EventArgs e) { var root = VisualHgSolution.CurrentRootDirectory; if (!CanRunTortoiseHg(root)) { return; } if (IsReloadSolutionNeeded()) { ShowUpdateDialogAndReloadSolution(root); } else { TortoiseHg.ShowUpdateWindow(root); } }