Created
April 19, 2018 02:38
-
-
Save tdcbm/a65a4f318403cf1f8b308e9dfc255df9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args) | |
{ | |
// ** Argument Properties and Uses ** | |
// ** args.MethodName ** | |
// ** Add Event Handler Code ** | |
// ** Use MessageBox to find adapter method name | |
// EpiMessageBox.Show(args.MethodName) | |
switch (args.MethodName) | |
{ | |
case "Update": | |
// DialogResult dialogResult = EpiMessageBox.Show("Cancel Update?", "Cancel", MessageBoxButtons.YesNo); | |
// if ((dialogResult == DialogResult.Yes)) | |
// { | |
// args.Cancel = true; | |
// } else | |
// { | |
// DoSomethingElse(); | |
// } | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment