Code
Using System;
Using System. Collections. Generic;
Using System. drawing;
Using System. Windows. forms;
Using Faibclass. basepackage;
Namespace Faibclass. toolpackage
{
Public Interface Ibasetool: ipackage
{
/// <Summary>
/// Development Framework.
/// </Summary>
Devframe { Set ; Get ;}
/// <Summary>
/// The icon on the menu.
/// </Summary>
Image image { Get ;}
/// <Summary>
/// Whether it is displayed at startup.
/// </Summary>
Bool Showitonstart { Get ;}
/// <Summary>
/// Processing When the tool is started.
/// </Summary>
Void Onstart ( Params Object [] PARS );
/// <Summary>
/// Tool type.
/// </Summary>
Tooltype { Get ;}
/// <Summary>
/// Index
/// </Summary>
Int Index { Get ;}
/// <Summary>
/// Sub-tool set
/// </Summary>
List < Isubtool > Subtools { Get ;}
}
Public Interface Itool: ibasetool
{
Applicationcontext content { Get ; Set ;}
/// <Summary>
/// Tool installation process.
/// </Summary>
Void Onsetup ();
/// <Summary>
/// After the table object is selected, it is processed in the tool.
/// </Summary>
/// <Param name = "OBJ"> </param>
Void Onselecttableobject ( Object OBJ );
/// <Summary>
/// Visible or not.
/// </Summary>
Bool Visible { Get ;}
}
Public InterfaceIsubtool: ibasetool
{
}
/// <Summary>
/// Tool type.
/// </Summary>
[Flags]
Public Enum Tooltype
{
/// <Summary>
/// Tool menu.
/// </Summary>
Toolmenu = 1 ,
/// <Summary>
/// Table menu.
/// </Summary>
Tablemenu = 2 ,
/// <Summary>
/// Toolbar button.
/// </Summary>
Toolbutton = 4 ,
/// <Summary>
/// Tray menu.
/// </Summary>
Traymenu = 8
}
}