Exemplo n.º 1
0
        public void Initialize()
        {
            Container.RegisterInstance <ArtistsModule>(this);

            // register views with region
            RegionManager.RegisterViewWithRegion("ArtistsSearchRegion", typeof(ArtistsSearchView));
            RegionManager.RegisterViewWithRegion("ArtistDetailsRegion", typeof(ArtistDetailsView));

            // get popup manager and add popup info for directory browser
            PopupManager popupManager = Container.Resolve <PopupManager>();

            Container.RegisterInstance <IBrowserMessageManager>(ArtistsModule.DirectoryBrowserPopupKey, popupManager);
            popupManager.AddPopup(ArtistsModule.DirectoryBrowserPopupKey,
                                  "DirectoryBrowserApplet.aspx",
                                  false,
                                  false,
                                  false,
                                  false,
                                  false,
                                  520,
                                  320);

            /*EventAggregator.GetEvent<CompositePresentationEvent<UIEventArgs<bool>>>().Subscribe(
             *  args => ,
             *  ThreadOption.UIThread,
             *  false,
             *  args => args.EventID == "Registered");*/
        }
Exemplo n.º 2
0
 protected override void OnShown(EventArgs e)
 {
     base.OnShown(e);
     PopupManager.AddPopup(this);
 }