Ejemplo n.º 1
0
    Result IExternalCommand.Execute( 
      ExternalCommandData commandData, 
      ref string message, 
      ElementSet elements )
    {
      UpgraderForm form = new UpgraderForm( commandData );

      form.ShowDialog();

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

            form.ShowDialog();

            return(Result.Succeeded);
        }
Ejemplo n.º 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);
        }