SectionManagerOnSectionAfterAddEvent Event |
Namespace: VIZCore3D.NET.Manager
public event SectionAfterAddEventHandler OnSectionAfterAddEvent
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { vizcore3d.Section.OnSectionBeforeAddEvent += Section_OnSectionBeforeAddEvent; vizcore3d.Section.OnSectionAfterAddEvent += Section_OnSectionAfterAddEvent; } private void Section_OnSectionBeforeAddEvent(object sender, Event.EventManager.SectionBeforeAddEventArgs e) { switch (e.Kind) { case Manager.SectionManager.SectionTypes.SECTION: { bool partSelection = e.PartSelection; VIZCore3D.NET.Data.Axis axis = e.SectionAxis; } break; case Manager.SectionManager.SectionTypes.SECTION_BOX: { bool partSelection = e.PartSelection; float margine = e.Margine; } break; case Manager.SectionManager.SectionTypes.SECTION_INBOX: break; case Manager.SectionManager.SectionTypes.SECTION_INBOX6: break; default: break; } } private void Section_OnSectionAfterAddEvent(object sender, Event.EventManager.SectionAfterAddEventArgs e) { VIZCore3D.NET.Data.Section section = e.Item; }