Beispiel #1
0
        public void AddWindowedCommand(RequestHandler handler, RevitCoreBaseDialogWindow window)
        {
            this._WindowByID.Add(window.ID, window);
            this._WindowByHandle.Add(handler.ID, window);
            this._HandleByID.Add(handler.ID, handler);
            this._HandleByWindow.Add(window.ID, handler);

            // External Event for the dialog to use (to post requests)
            ExternalEvent exEvent = ExternalEvent.Create(handler);
            this._EventbyWindow.Add(window.ID, exEvent);
        }
Beispiel #2
0
 public void MakeRequest(RevitCoreBaseDialogWindow theWindow, AbstractRequestCommand theRequest)
 {
     RequestHandler _theHandler = _HandleByWindow[theWindow.ID];
     _theHandler._theRequest = theRequest;
     ExternalEvent _theEvent = _EventbyWindow[theWindow.ID];
     _theEvent.Raise();
 }