I have a method that is called when an exception occurs:
public void ErrorDBConcurrency(DBConcurrencyException e)
{
MessageBox.Show("You must refresh the datasource");
}
What i would like to do is pass this function a method so if the user clicks Yes then the method is called e.g.
public void ErrorDBConcurrency(DBConcurrencyException e, something Method)
{
if (MessageBox.Show("You must refresh the datasource") == DialogResult.OK)
Method();
}
The Method may or may not have parameters, if this is the case i would like to pass them too.
How can i acheive this?