User login

  

Creating Component overview

Custom Component shall implement few simple interfaces. Every class for export shall be marked with Exportable attribute. It is made to simplify developer’s work – if there are several classes in library developer can manage their exportability.

To access attribute and other types for SDK you need to use Commons.dll from ProTrader root directory.

namespace com.pfsoft.proftrading.commons.external 
{
/// <summary>
/// Use this attribute for allow/forbid export designed
/// component to application
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited
= false)]
[Serializable]
public class ExportableAttribute : Attribute
{
private bool FExportable;
public bool Exportable
{
get { return FExportable; }
}
 
public ExportableAttribute(bool isExportable)
{
FExportable = isExportable;
}
public ExportableAttribute()
: this(true)
{
}
}
}
12345