Exemplo n.º 1
0
        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);
                }
            }
        }
Exemplo n.º 2
0
 private void Checkout_Click(object sender, EventArgs e)
 {
     git.Checkout(this.SourceBranch.SelectedItem.ToString());
 }