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

      form.ShowDialog();

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

            form.ShowDialog();

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