public static IBranch SelectBranch(ScenarioDepot scenario, IBranch initialSelection, IBranch formulaBeingEdited) { var browser = new ScenarionBrowser(BrowserMode.SelectBranch, scenario, initialSelection, formulaBeingEdited); return browser.ShowDialog() == DialogResult.OK ? browser.SelectedEntity : null; }
public static IBranch SelectNode(ScenarioDepot scenario, IBranch initialSelection) { var browser = new ScenarionBrowser(BrowserMode.SelectNode, scenario, initialSelection, null); return browser.ShowDialog() == DialogResult.OK ? browser.SelectedEntity : null; }