Plugin(Development)
Plugin of VidyaVitamin can be developed as a class library of .NET Framework 4.0.
Create project
The following shows the example of Visual Studio 2010.
- Select "New→Project" from "File".
- Select "Class Library" from the window.
- If a project is created, you will select "Add Reference" from Solution Explorer.
- If a window is shown, you select "System.ComponentMode.Composition" from ".NET" tab.
Next, please select the "Browse" tab from the same window and select "Plugin.dll" which exists in a folder with the executable file of VidyaVitamin. There is no difference in 32bit and 64bit(That dll is built by "Any CPU").
- Creates a plugin class. You create voluntary class and implement the interface of either of "IVVEditorPlugin", "IVVCardPlugin", "IVVCardFormPlugin", and "IVVTablePlugin" in "VidyaVitamin.Plugin" namespace. Adding the "Export" class of "System.ComponentModel.Composision" namespace as an attribute finally, you specify "IVVPlugin" as the interface implemented in it.
Copies the developed plugin to the "plugin" folder in a folder with a VidyaVitamin executable file. If a plugin is recognized normally, the method and property of an interface which were implemented will be called.
Plugin API
- IVVPlugin
- IVVEditorPlugin
- IVVTablePlugin
- IVVCardPlugin
- IVVCardFormPlugin
- IVVForm
- IVVReceivable
- IReceiveCard
- INotifyUpdate
- EnableType
- UpdateType
- IVVUtility
- IFirebird
- IFirebirdTable
- IFbResult
- DBAttrType
- DBAttributedData
- FbFieldData
- SQLTypeDefine
- CalculationType
Sample code
PictureImport.zip - The table plugin which registers pictures in the folder at once.
EditorPluginTest.zip - The form of an editor plugin.
Thumbnail.zip - The form plugin which shows thumbnails.