Personal tools
You are here: Home For Developers Tutorials How to create templates page 10

page 10

Step 10. Modify PlugInMain class


In Solution Explorer, double-click Properties
In Project Designer, select Application tab
       In Assembly name, type in "LANDIS-II Extension"
       In Default namespace, type in "Landis.Extensions"
       Click Assembly Information... button

                 In Assembly Information dialog window:
                         Change Title to LANDIS-II Extension
                         Change Description to a more generic "A basis for building LANDIS-II extension"

Projects' properties window


In PlugInMain text editor window:
     Change namespace to Landis.Extensions 
     Make sure "public" keyword presents before "class PlugInMain"
     Add the base class name ": Landis.PlugIns.PlugIn" after "public class PlugInMain
        Click on the base class name, click on smart tag (a little box underneath "L") and click on the pull-down box. Select the only item in the list: Implement abstract class
     'Landis.PlugIns.PlugIn' 

PlugInMain.cs


     The text editor inserts the definitions for two abstract methods Initialize() and Run(), including return types and parameters. Each method symply throws an exception
     which indicates the method has not been implemented. 

PlugInMain.cs


     Add constructor to PlugInMain class:

PlugInMain.cs


Save changes


< Page 9 | Page 10 | Page 11 >
Document Actions