Created
September 6, 2019 02:09
-
-
Save johnpierson/ef420d0a42bac1c51c1c747ef36a2aef to your computer and use it in GitHub Desktop.
This file contains 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
public Result OnStartup(UIControlledApplication a) | |
{ | |
a.ControlledApplication.FileImporting += ControlledApplicationOnFileImporting; | |
return Result.Succeeded; | |
} | |
private void ControlledApplicationOnFileImporting(object sender, FileImportingEventArgs e) | |
{ | |
TaskDialog.Show("Alert", "Sorry about that. No CAD import for you."); | |
e.Cancel(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment