public void Execute(TabbedExplorerPresenter tabbedExplorerPresenter) { // Open the standard toolbox in a tab tabbedExplorerPresenter.OnStandardToolboxClick(null, null); // Get the presenter for this tab. ExplorerPresenter presenter = tabbedExplorerPresenter.Presenters[0]; // Loop through all nodes in the standard toolbox and select each in turn. while (presenter.SelectNextNode()) { ; } // Close the user interface. tabbedExplorerPresenter.Close(); }
public void Execute(MainPresenter mainPresenter) { // Open the standard toolbox in a tab mainPresenter.OnStandardToolboxClick(null, null); // Get the presenter for this tab. ExplorerPresenter presenter = mainPresenter.presenters1[0]; // Loop through all nodes in the standard toolbox and select each in turn. while (presenter.SelectNextNode()) { ; } // Close the user interface. mainPresenter.Close(askToSave: false); }
private void CycleThroughNodes(MainPresenter mainPresenter) { // Get the presenter for this tab. ExplorerPresenter presenter = mainPresenter.Presenters1[0] as ExplorerPresenter; if (presenter == null) { throw new Exception("Unable to open wheat example."); } // Loop through all nodes in the standard toolbox and select each in turn. while (presenter.SelectNextNode()) { ; } presenter = null; }