public void Execute(UIApplication app) { uidoc = app.ActiveUIDocument; doc = uidoc.Document; sel = uidoc.Selection; currentUI = ONBOXAppl.ONBOXApplication.onboxApp.beamsUpdateWindow; //BeamsFromColumnsWindow.beamFromColumnsCurrentOperation if (app != null) { switch (currentUI.beamFromWallsCurrentOperation) { case ExternalOperation.Create: CreateBeams(); break; case ExternalOperation.Reload: Reload(); break; case ExternalOperation.Unsubscribe: Unsubscribe(); break; default: break; } } }
internal void ShowBeamsUpdateUI() { if (beamsUpdateWindow == null || beamsUpdateWindow.isShowned == false) { if (uiApp != null) { uiApp.ViewActivated += BeamsUpdate_ViewActivated; } requestBeamsUpdateHandler = new RequestBeamsUpdateHandler(); externalBeamsUpdateEvent = ExternalEvent.Create(requestBeamsUpdateHandler); beamsUpdateWindow = new BeamsUpdateUI(externalBeamsUpdateEvent, requestBeamsUpdateHandler); beamsUpdateWindow.Show(); } }