Delegate GPALForm.CallAfterFillInDelegate
Delegate callback for the CallAfterFillIn EventHandler which will be invoked after each row of tokens is consumed.
Invoked whenever FillInFrom/FilllInFromDatabase/FillInFrom are used
Namespace: GenerallyPositive.GPALForm
Assembly: GPAL.dll
Syntax
public delegate int CallAfterFillInDelegate(GPALForm myForm, IGPALGrid<string> tokens, int tokenIdx);
Parameters
| Type | Name | Description |
|---|---|---|
| GPALForm | myForm | The GPALForm being filled in |
| IGPALGrid<System.String> | tokens | The current GPALGrid<string> of tokens |
| System.Int32 | tokenIdx | The current token row index |
Returns
| Type | Description |
|---|---|
| System.Int32 | -1 if the handler requests the application to exit, otherwise the return value is ignored |
Examples
static GPALButton gPalButton1 = (GPALButton)GPAL.Button
.WithName("Start Workflow")
.WithText("Start The Workflow")
.WithCallback(StartButtonClickHandler)
.WithShortcutKey(System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.S); // Alt-S
public static int CallAFterFillIn(GPALForm myForm, GPALGrid<string> tokens, int tokenIdx) // text filled in search box, click 'Search' button
{
// with GPAL forms, you have direct access to each control
// start the workflow after the input has filled in
((Button)GPalButton1.WindowsControl).Click();
return 0;
}