IAddin

Top Previous Topic Next Topic  Print this topic

IAddin represents the mandatory interface which a plugin must implement to work with the Ecrion.Silverlight application.

 

Methods

 

Name

Description

GetVisualObjectFactory

Implementations must return an instance of a class implementing IVisualObjectFactory to provide customization functionality.

GetActionHandler

Implementations must return an instance of a class implementing IActionHandler to provide mouse events functionality.

       

       

GetVisualObjectFactory

 

When overridden in a derived class, this method returns an instance of a class which implements IVisualObjectFactory or null if no class implements the interface.

 

       

 

IVisualObjectFactory GetVisualObjectFactory();

 

 

       

 

GetActionHandler

 

When overridden in a derived class, this method returns an instance of a class which implement IActionHandler or null if no class implements the interface.

 

 

IActionHandler GetActionHandler();

 

       

Example

 

The Addin class implements the IAddin interface.
GetVisualObjectFactory() returns an instance of the Factory class, which implements the IVisualObjectFactory interface.
GetActionHandler() returns an instance of ActionHandler which implements the IActionHandler inteface.

               

 

 public class Addin : IAddin

   {

      public IVisualObjectFactory GetVisualObjectFactory()

       {

          return new Factory();

       }

 

      public IActionHandler GetActionHandler()

       {

          return new ActionHandler();

       }

   }