internal void ShowBeamsFromWallsUI() { if (beamsFromWallsWindow == null || beamsFromWallsWindow.isShowned == false) { //Implements the viewChange(view activated) event if (uiApp != null) { uiApp.ViewActivated += BeamsFromWalls_ViewActivated; } //Impements the create (Beams from walls) events requestBeamsFromWallsHandler = new RequestBeamsFromWallsHandler(); externalBeamsFromWallsEvent = ExternalEvent.Create(requestBeamsFromWallsHandler); //Implements the BeamsFromWalls UI Window //Pass the external event and the event handler to the instance of the UI beamsFromWallsWindow = new BeamsFromWallsUI(externalBeamsFromWallsEvent, requestBeamsFromWallsHandler); beamsFromWallsWindow.Show(); } }
public BeamsFromWallsUI(ExternalEvent targetEvent, RequestBeamsFromWallsHandler targetHandler) { InitializeComponent(); localExternalEvent = targetEvent; localExternalEventHandler = targetHandler; }