public ShowForm ( UIApplication uiapp ) : void | ||
uiapp | UIApplication | |
Результат | void |
/// <summary> /// Main Command Entry Point /// </summary> /// <param name="commandData"></param> /// <param name="message"></param> /// <param name="elements"></param> /// <returns></returns> public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { try { // Form Running? if (_isRunning && _appIssueTracker != null && _appIssueTracker.RvtWindow.IsLoaded) { _appIssueTracker.Focus(); return Result.Succeeded; } _isRunning = true; ThisCmd = this; _appIssueTracker = new AppIssueTracker(); _appIssueTracker.ShowForm(commandData.Application); return Result.Succeeded; } catch (Exception e) { message = e.Message; return Result.Failed; } }
/// <summary> /// Main Command Entry Point /// </summary> /// <param name="commandData"></param> /// <param name="message"></param> /// <param name="elements"></param> /// <returns></returns> public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { try { // Form Running? if (_isRunning && _appIssueTracker != null && _appIssueTracker.RvtWindow.IsLoaded) { _appIssueTracker.Focus(); return(Result.Succeeded); } _isRunning = true; ThisCmd = this; _appIssueTracker = new AppIssueTracker(); _appIssueTracker.ShowForm(commandData.Application); return(Result.Succeeded); } catch (Exception e) { message = e.Message; return(Result.Failed); } }