// //When Revit shuts down, close the open MainUI if it is visible. Return the result. public Result OnShutdown(UIControlledApplication application) { if (newMainUi != null && newMainUi.Visible) { newMainUi.Close(); } return(Result.Succeeded); }
protected override void OnDisposed() { if (MainUI != null) { MainUI.Close(); MainUI = null; } }
public async void CloseLauncher() { await DeleteTempFolderAndFiles(); ui.Close(); }