예제 #1
0
        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();
            }
        }
예제 #2
0
 public BeamsFromWallsUI(ExternalEvent targetEvent, RequestBeamsFromWallsHandler targetHandler)
 {
     InitializeComponent();
     localExternalEvent        = targetEvent;
     localExternalEventHandler = targetHandler;
 }