Пример #1
0
        private void RegisterWindow(UIControlledApplication app)
        {
            EventLoadfamily          eventLoadfamily          = new EventLoadfamily();
            ExternalEvent            exEvent                  = ExternalEvent.Create(eventLoadfamily);
            DockablePaneProviderData dockablePaneProviderData = new DockablePaneProviderData();
            DockablePage             dockablePage             = new DockablePage(exEvent, eventLoadfamily);

            this.m_window = dockablePage;
            dockablePaneProviderData.FrameworkElement          = dockablePage;
            dockablePaneProviderData.InitialState              = new DockablePaneState();
            dockablePaneProviderData.InitialState.DockPosition = DockPosition.Left;;
            dockablePaneProviderData.InitialState.TabBehind    = DockablePanes.BuiltInDockablePanes.ProjectBrowser;;
            DockablePaneId dockablePaneId = new DockablePaneId(Application.paneGuid);

            app.RegisterDockablePane(dockablePaneId, "BIM-Library", dockablePage);
            app.ViewActivated += new EventHandler <ViewActivatedEventArgs>(this.Application_ViewActivated);
        }
 public DockablePage(ExternalEvent exEvent, EventLoadfamily handler)
 {
     this.InitializeComponent();
     this.m_exEvent = exEvent;
     this.m_Handler = handler;
 }