public void AttachToEnvironment(IWorkingEnvironment environment) { Verify.Argument.IsNotNull(environment, "environment"); Verify.State.IsTrue(_environment == null); _environment = environment; _explorer = new RepositoryExplorer(this); foreach (var factory in _viewFactories) { environment.ViewDockService.RegisterFactory(factory); } environment.ProvideRepositoryExplorerItem(_explorer.RootItem); environment.ProvideToolbar(_mainToolbar); for (int i = 0; i < _statusbar.LeftAlignedItems.Length; ++i) { environment.ProvideStatusBarObject(_statusbar.LeftAlignedItems[i], true); } for (int i = 0; i < _statusbar.RightAlignedItems.Length; ++i) { environment.ProvideStatusBarObject(_statusbar.RightAlignedItems[i], false); } foreach (var menu in _menus.Menus) { environment.ProvideMainMenuItem(menu); } foreach (var item in _menus.ViewMenuItems) { environment.ProvideViewMenuItem(item); } ActivateDefaultView(); }
public void AttachToEnvironment(IWorkingEnvironment environment) { Verify.Argument.IsNotNull(environment, "environment"); _repositoryExplorer = new RepositoryExplorer(environment, this); environment.ProvideRepositoryExplorerItem(_repositoryExplorer.RootItem); }
public void AttachToEnvironment(IWorkingEnvironment environment) { Verify.Argument.IsNotNull(environment, "environment"); _repositoryExplorer = new RepositoryExplorer(environment, this); environment.ProvideRepositoryExplorerItem(_repositoryExplorer.RootItem); }
public void AttachToEnvironment(IWorkingEnvironment environment) { Verify.Argument.IsNotNull(environment, "environment"); Verify.State.IsTrue(_environment == null); _environment = environment; _explorer = new RepositoryExplorer(this); foreach(var factory in _viewFactories) { environment.ViewDockService.RegisterFactory(factory); } environment.ProvideRepositoryExplorerItem(_explorer.RootItem); environment.ProvideToolbar(_mainToolbar); for(int i = 0; i < _statusbar.LeftAlignedItems.Length; ++i) { environment.ProvideStatusBarObject(_statusbar.LeftAlignedItems[i], true); } for(int i = 0; i < _statusbar.RightAlignedItems.Length; ++i) { environment.ProvideStatusBarObject(_statusbar.RightAlignedItems[i], false); } foreach(var menu in _menus.Menus) { environment.ProvideMainMenuItem(menu); } foreach(var item in _menus.ViewMenuItems) { environment.ProvideViewMenuItem(item); } ActivateDefaultView(); }
public void AttachToEnvironment(IWorkingEnvironment environment) { _repositoryExplorer = new RepositoryExplorer(environment, this); environment.ProvideRepositoryExplorerItem(_repositoryExplorer.RootItem); }
public void AttachToEnvironment(IWorkingEnvironment environment) { _repositoryExplorer = new RepositoryExplorer(environment, this); environment.ProvideRepositoryExplorerItem(_repositoryExplorer.RootItem); }