Wavecom W-BitView V2.5.00 User Manual
Page 77

BitView Manual V2.5.00 WAVECOM W-BV
Custom Library
71
[Description("Icon bitmap for Toolbox Button and History Explorer")]
[Browsable(false)]
public static System.Drawing.Image IconImage
{
get
{
return iconImage;
}
}
private
static
System.Drawing.Color
iconTransparentColor
=
System.Drawing.Color.FromArgb(224, 223, 227);
///
/// If available, you can specify a custom image display on the function button
/// in the toolbox. The image must be 16x16 pixel, the transparent color must
/// be specified here
///
[Category(PropertyCategory.Information)]
[Description("Icon bitmap transparent color")]
[Browsable(false)]
public static System.Drawing.Color IconTransparentColor
{
get
{
return iconTransparentColor;
}
}
#endregion
#region Optional Properties
// Input Parameter for calculation function
private int inpar1 = 13; // set a reasonable default value
///
/// optional parameter for calculation, put this into the Configuration category
///
[Category(PropertyCategory.Configuration)]
[Description("Description of Input 1 goes here")]
[DefaultValue(13)] // set a reasonable default value
[DisplayName("Input 1")]
public int Inpar1
{
get
{
return inpar1;
}
set
{
inpar1 = value;
}
}
private int inpar2 = 5; // set a reasonable default value
///
/// optional parameter for calculation, put this into the Configuration category
///
[Category(PropertyCategory.Configuration)]
[Description("Description of Input 2 goes here")]
[DefaultValue(5)] // set a reasonable default value
[DisplayName("Input 2")]
public int Inpar2
{
get
{
return inpar2;
}
set
{
inpar2 = value;
}
}
// add more Configuration properties here