public void CreateBranch() { if (this.Solution == null) { return; } if (this.WorkItem == null) { MessageBox.ErrorQuery(50, 7, "VSTS", "You must select a work item first", "Ok"); return; } if (!EnsureHasNoChanges()) { return; } WindowManager.ShowLog(); GitService.CheckoutBranch(this.Solution, this.BranchBase); GitService.Pull(this.Solution); GitService.CreateBranch(this.Solution, this.WorkItem); GitService.UpdateStatus(this.Solution, true); WindowManager.CloseLog(); this.RefreshUI(); }