EmployeeTabControl

Now that we have created the tab page and developed the XML parsing code required to display data in the drop-down list, we can define the implementation details for displaying the tab page within a tab control. We will achieve this by creating a class called EmployeeTabControl, and Figure 20-12 shows the code required.

You can see from Figure 20-12 how little code is required in the EmployeeTabControl to create and display a tab control that consists of the EmployeeTabPage class. All that is required is implementation code to set the correct width and height, and then a call to the {add-pane} method with a declaration of the EmployeeTabPage class. Once this has been instantiated, we change the visible? property to false for ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.