Book Image

ArcGIS By Example

By : Hussein Nasser
Book Image

ArcGIS By Example

By: Hussein Nasser

Overview of this book

Table of Contents (17 chapters)
ArcGIS By Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Opening existing designs


In this section, we will learn how to open an existing design by specifying the design ID. We will write a method called LoadDesign which will query the Design table, verify that the design exists, retrieve the date, populate the form with all the details, and filter the map to show only excavation for that particular design.

The LoadDesign method

We will create the LoadDesign method that will be responsible for querying and loading all design details. Follow these steps to add the method:

  1. 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.

  2. Go to File, then click on Open Project, browse to the Yharnam project from C:\ArcGISByExample\yharnam\Code, and click on Open.

  3. Right-click on frmDesignManager.vb and select View Code.

  4. Write the LoadDesign method, which accepts...