Example #1
0
        public void AttachToEnvironment(IWorkingEnvironment environment)
        {
            Verify.Argument.IsNotNull(environment, "environment");

            _repositoryExplorer = new RepositoryExplorer(environment, this);
            environment.ProvideRepositoryExplorerItem(_repositoryExplorer.RootItem);
        }
Example #2
0
        public void AttachToEnvironment(IWorkingEnvironment environment)
        {
            Verify.Argument.IsNotNull(environment, "environment");

            _repositoryExplorer = new RepositoryExplorer(environment, this);
            environment.ProvideRepositoryExplorerItem(_repositoryExplorer.RootItem);
        }
Example #3
0
        public void DetachFromEnvironment(IWorkingEnvironment environment)
        {
            Verify.Argument.IsNotNull(environment, "environment");

            var views1 = environment.ViewDockService.FindViews(Guids.BuildTypeBuildsViewGuid).ToList();
            foreach(var view in views1) view.Close();
            environment.RemoveRepositoryExplorerItem(_repositoryExplorer.RootItem);
            _repositoryExplorer = null;
        }
Example #4
0
        public void DetachFromEnvironment(IWorkingEnvironment environment)
        {
            Verify.Argument.IsNotNull(environment, "environment");

            var views1 = environment.ViewDockService.FindViews(Guids.BuildTypeBuildsViewGuid).ToList();

            foreach (var view in views1)
            {
                view.Close();
            }
            environment.RemoveRepositoryExplorerItem(_repositoryExplorer.RootItem);
            _repositoryExplorer = null;
        }