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();
}
}