"Action" parameter in ShowDialog

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!

In form.ShowDialog there is an “action” parameter : what’s the use of it? Can I use to invoke a delegate? Can you post an example?

  • You must to post comments

Shows the form as a modal dialog on the client but not on the server. It’s similar to the typical javascript pattern for modal dialogs since in javascript you cannot block. Wisej supports that pattern on the server as well.

form.ShowDialog((sender, result) => {

// this code is executed when the dialog is closed, result contains the DialogResult.


// this code is executed right away, unlike a real modal dialog.

The same concept works for the MessageBox.Show() overload with the close callback handler.


Will update the documentation with more info.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.