I need to confirm an action by the user using the Confirm() method. Is there any way to pass an object into the OnClosed() event as part of the confirmation? For example, I want to have the user confirm that they want to delete a transaction. If they answer YES, I need the transaction object as part of the OnClosed() event to know how to properly delete various records from a database associated with the transaction. Currently, I'm setting a global object, but I consider this to be a bad coding practice. Any recommendations?
If there is a way of doing this, I would recommend this as an additional to your samples. The Confirm() and Prompt() examples today are not very "real world", as objects typically need to be accessed when confirmation is given by the user.
If there is a way of doing this, I would recommend this as an additional to your samples. The Confirm() and Prompt() examples today are not very "real world", as objects typically need to be accessed when confirmation is given by the user.