DIMcDyeEvents_BeforeAddEventHandler Delegate

Event fired before a new dye is created by McDyes.Add.

Namespace:  MediaCy.IQL.Microscopy.Info
Assembly:  MediaCy.IQL.Microscopy.Info (in MediaCy.IQL.Microscopy.Info.dll) Version: 10.0.6912.0
Syntax
VB
Public Delegate Sub DIMcDyeEvents_BeforeAddEventHandler ( 
	Name As String,
	<OutAttribute> ByRef pNewDye As McDye,
	<OutAttribute> ByRef bCancel As Boolean
)

Parameters

Name
Type: SystemString
Name of the new dye.
pNewDye
Type: MediaCy.IQL.Microscopy.InfoMcDye
Not used unless bCancel is set True, in which case this is the return value from the McDyes.Add method.
bCancel
Type: SystemBoolean
If assigned True by the event handler, then the Dye returned by the event handler is used as the return value for the McDyes.Add method.
Remarks
This event could be used to display a "New Dye" dialog. This event is NOT fired when a dye is created using the AddCopyOf method. Note that completion of the Add or AddCopyOf operation results in a PropertyChanged event on the collection's Count property.
See Also