예제 #1
0
    Result IExternalCommand.Execute( 
      ExternalCommandData commandData, 
      ref string message, 
      ElementSet elements )
    {
      UpgraderForm form = new UpgraderForm( commandData );

      form.ShowDialog();

      return Result.Succeeded;
    }
예제 #2
0
        Result IExternalCommand.Execute(
            ExternalCommandData commandData,
            ref string message,
            ElementSet elements)
        {
            UpgraderForm form = new UpgraderForm(commandData);

            form.ShowDialog();

            return(Result.Succeeded);
        }
예제 #3
0
        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);
        }