public override void Loaded(ViewLoadedParams viewLoadedParams) { DependencyView = new WorkspaceDependencyView(this, viewLoadedParams); // when a package is loaded update the DependencyView // as we may have installed a missing package. pmExtension.PackageLoader.PackgeLoaded += (package) => { DependencyView.DependencyRegen(viewLoadedParams.CurrentWorkspaceModel as WorkspaceModel); }; // Adding a button in view menu to refresh and show manually workspaceReferencesMenuItem = new MenuItem { Header = Resources.MenuItemString, IsCheckable = true, IsChecked = false }; workspaceReferencesMenuItem.Click += (sender, args) => { if (workspaceReferencesMenuItem.IsChecked) { // Refresh dependency data DependencyView.DependencyRegen(viewLoadedParams.CurrentWorkspaceModel as WorkspaceModel); viewLoadedParams.AddToExtensionsSideBar(this, DependencyView); workspaceReferencesMenuItem.IsChecked = true; } else { viewLoadedParams.CloseExtensioninInSideBar(this); workspaceReferencesMenuItem.IsChecked = false; } }; viewLoadedParams.AddExtensionMenuItem(workspaceReferencesMenuItem); }
public void Loaded(ViewLoadedParams viewLoadedParams) { DependencyView = new WorkspaceDependencyView(this, viewLoadedParams); // Adding a button in view menu to refresh and show manually packageDependencyMenuItem = new MenuItem { Header = Resources.MenuItemString }; packageDependencyMenuItem.Click += (sender, args) => { // Refresh dependency data DependencyView.DependencyRegen(viewLoadedParams.CurrentWorkspaceModel as WorkspaceModel); viewLoadedParams.AddToExtensionsSideBar(this, DependencyView); }; viewLoadedParams.AddMenuItem(MenuBarType.View, packageDependencyMenuItem); }
public void Loaded(ViewLoadedParams viewLoadedParams) { DependencyView = new WorkspaceDependencyView(this, viewLoadedParams); // when a package is loaded update the DependencyView // as we may have installed a missing package. pmExtension.PackageLoader.PackgeLoaded += (package) => { DependencyView.DependencyRegen(viewLoadedParams.CurrentWorkspaceModel as WorkspaceModel); }; // Adding a button in view menu to refresh and show manually packageDependencyMenuItem = new MenuItem { Header = Resources.MenuItemString }; packageDependencyMenuItem.Click += (sender, args) => { // Refresh dependency data DependencyView.DependencyRegen(viewLoadedParams.CurrentWorkspaceModel as WorkspaceModel); viewLoadedParams.AddToExtensionsSideBar(this, DependencyView); }; viewLoadedParams.AddMenuItem(MenuBarType.View, packageDependencyMenuItem); }