void Microsoft.Expression.Framework.Documents.IDocumentContainer.BeginCheckDocumentStatus(IDocument document) { ISolution currentSolution = base.Services.ProjectManager().CurrentSolution; if (currentSolution != null && currentSolution.IsSourceControlActive && SourceControlStatusCache.GetCachedStatus(this) == SourceControlStatus.CheckedIn) { ISourceControlProvider sourceControlProvider = base.Services.SourceControlProvider(); string[] path = new string[] { base.DocumentReference.Path }; if (sourceControlProvider.Checkout(path) == SourceControlSuccess.Success) { SourceControlStatusCache.SetCachedStatus(this, SourceControlStatus.CheckedOut); } } }
private void Checkout_Click(object sender, EventArgs e) { git.Checkout(this.SourceBranch.SelectedItem.ToString()); }