public void ConfigurePartAdders(OutlineNode node, FixtureGraph fixture, IPartHolder holder) { var selector = new OutlineGrammarSelector(node); var configurer = new GrammarSelectorConfigurer(holder, selector, _controller); configurer.Configure(fixture); }
public void ConfigureSectionAdder(OutlineNode node, FixtureLibrary library, Test test) { var selector = new OutlineGrammarSelector(node); selector.Add(Icon.Comment, "Comment", () => _controller.AddComment(test), Key.C.ToGesture()); int index = 0; library.ActiveFixtures.Each(x => { if (index < Shortcuts.Length) { selector.Add(Icon.Section, x.Label, () => _controller.AddSection(x.Name), Shortcuts[index++]); } else { selector.Add(Icon.Section, x.Label, () => _controller.AddSection(x.Name), new KeyGesture(Key.F15)); } }); }
public GrammarSelectorConfigurer(IPartHolder holder, OutlineGrammarSelector selector, IOutlineController controller) { _holder = holder; _selector = selector; _controller = controller; }
public GrammarSelectorConfigurer(IPartHolder holder, OutlineGrammarSelector selector, IOutlineController controller) { _holder = holder; _selector = selector; _controller = controller; }
public void ConfigureSectionAdder(OutlineNode node, FixtureLibrary library, Test test) { var selector = new OutlineGrammarSelector(node); selector.Add(Icon.Comment, "Comment", () => _controller.AddComment(test), Key.C.ToGesture()); int index = 0; library.ActiveFixtures.Each(x => { if (index < Shortcuts.Length) { selector.Add(Icon.Section, x.Label, () => _controller.AddSection(x.Name), Shortcuts[index++]); } else { selector.Add(Icon.Section, x.Label, () => _controller.AddSection(x.Name), new KeyGesture(Key.F15)); } }); }
public void ConfigurePartAdders(OutlineNode node, FixtureStructure fixture, IPartHolder holder) { var selector = new OutlineGrammarSelector(node); var configurer = new GrammarSelectorConfigurer(holder, selector, _controller); configurer.Configure(fixture); }