In this section, we will continue working on our design manager; only few functionalities are missing and among them are delete excavation and delete design.
To delete an excavation from an existing design, we will need to select it from the list and click on the Delete Excavation button. Then we are required to call the LoadDesign
method to reload everything:
If necessary, open Visual Studio Express in administrator mode; we need to do this since our project is actually writing to the registry this time, so it needs administrator permissions. To do that, right-click on Visual Studio and click on Run as administrator.
Go to File, then click on Open Project, browse to the
Yharnam
project from theC:\ArcGISByExample\yharnam\Code
, and click on Open.Double-click on
frmDesignManager.vb
to view the form designer.Double-click on the Delete Excavation button to generate the
btnDeleteExcavation_Click
method.The
lstExcavation.SelectedItem
variable will give us the...