Result IExternalCommand.Execute( ExternalCommandData commandData, ref string message, ElementSet elements ) { UpgraderForm form = new UpgraderForm( commandData ); form.ShowDialog(); return Result.Succeeded; }
Result IExternalCommand.Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UpgraderForm form = new UpgraderForm(commandData); form.ShowDialog(); return(Result.Succeeded); }
Result IExternalCommand.Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UIApplication UIApp = commandData.Application; UIApp.DialogBoxShowing += new EventHandler <DialogBoxShowingEventArgs>(OnDialogShowing); UIApp.Application.FailuresProcessing += new EventHandler <FailuresProcessingEventArgs>(OnFailuresProcessing); UpgraderForm form = new UpgraderForm(commandData); form.ShowDialog(); UIApp.Application.FailuresProcessing -= OnFailuresProcessing; UIApp.DialogBoxShowing -= OnDialogShowing; return(Result.Succeeded); }