MonoDevelop.VersionControl.TFS.GUI.VersionControl.SourceControlExplorerView.Load C# (CSharp) Méthode

Load() private méthode

private Load ( ProjectCollection collection ) : void
collection ProjectCollection
Résultat void
        private void Load(ProjectCollection collection)
        {
            if (this.projectCollection != null && string.Equals(collection.Id, this.projectCollection.Id, StringComparison.OrdinalIgnoreCase))
            {
                return;
            }
            projectCollection = collection;
            ContentName = GettextCatalog.GetString("Source Explorer") + " - " + projectCollection.Server.Name + " - " + projectCollection.Name;
            using (var progress = new MonoDevelop.Ide.ProgressMonitoring.MessageDialogProgressMonitor(true, false, false))
            {
                progress.BeginTask("Loading...", 2);
                FillWorkspaces();
                progress.Step(1);
                FillTreeView();
                progress.EndTask();
            }
        }

Same methods

SourceControlExplorerView::Load ( string fileName ) : void

Usage Example

        public static void Open(ProjectInfo project)
        {
            foreach (var view in IdeApp.Workbench.Documents)
            {
                var sourceDoc = view.GetContent<SourceControlExplorerView>();
                if (sourceDoc != null)
                {
                    sourceDoc.Load(project.Collection);
                    sourceDoc.ExpandPath(VersionControlPath.RootFolder + project.Name);
                    view.Window.SelectWindow();
                    return;
                }
            }

            var sourceControlExplorerView = new SourceControlExplorerView();
            sourceControlExplorerView.Load(project.Collection);
            sourceControlExplorerView.ExpandPath(VersionControlPath.RootFolder + project.Name);
            IdeApp.Workbench.OpenDocument(sourceControlExplorerView, true);
        }
All Usage Examples Of MonoDevelop.VersionControl.TFS.GUI.VersionControl.SourceControlExplorerView::Load