コード例 #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
ファイル: Command.cs プロジェクト: acnicholas/FileUpgrader
        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);
        }