Ejemplo n.º 1
0
        private void InitializePanels()
        {
            HomePanel homePanel = new HomePanel();

            homePanel.MediaSoftwareServices = mediaSoftwareServices;
            panels.Add("home", homePanel);

            DevicesPanel devicesPanel = new DevicesPanel();

            devicesPanel.Model = modelRepository;
            devicesPanel.PortableDevicesService  = portableDevicesService;
            devicesPanel.SupportedDevicesManager = supportedDevicesManager;
            devicesPanel.MainForm = this;
            panels.Add("devices", devicesPanel);


            DefaultNewPlaylistAssociationFormFactory newPlaylistAssociationFormFactory = new DefaultNewPlaylistAssociationFormFactory();

            newPlaylistAssociationFormFactory.ModelRepository = modelRepository;

            PlaylistsPanel playlistsPanel = new PlaylistsPanel();

            playlistsPanel.MediaSoftwareService = mediaSoftwareServices[ITunesServiceImpl.SERVICE_NAME];
            playlistsPanel.Model    = modelRepository;
            playlistsPanel.MainForm = this;
            panels.Add("playlists", playlistsPanel);

            AssociationManagementPanel associationsPanel = new AssociationManagementPanel();

            associationsPanel.MainForm             = this;
            associationsPanel.MediaSoftwareService = mediaSoftwareServices[ITunesServiceImpl.SERVICE_NAME];
            associationsPanel.DevicesManager       = supportedDevicesManager;
            associationsPanel.Model = modelRepository;
            panels.Add("associations", associationsPanel);

            panels.Add("preferences", new PreferencesPanel());

            SetCommonPanelProperties();
        }
Ejemplo n.º 2
0
        private void InitializePanels()
        {
            HomePanel homePanel = new HomePanel();
            homePanel.MediaSoftwareServices = mediaSoftwareServices;
            panels.Add("home", homePanel);

            DevicesPanel devicesPanel = new DevicesPanel();
            devicesPanel.Model = modelRepository;
            devicesPanel.PortableDevicesService = portableDevicesService;
            devicesPanel.SupportedDevicesManager = supportedDevicesManager;
            devicesPanel.MainForm = this;
            panels.Add("devices", devicesPanel);

            DefaultNewPlaylistAssociationFormFactory newPlaylistAssociationFormFactory = new DefaultNewPlaylistAssociationFormFactory();
            newPlaylistAssociationFormFactory.ModelRepository = modelRepository;

            PlaylistsPanel playlistsPanel = new PlaylistsPanel();
            playlistsPanel.MediaSoftwareService = mediaSoftwareServices[ITunesServiceImpl.SERVICE_NAME];
            playlistsPanel.Model = modelRepository;
            playlistsPanel.MainForm = this;
            panels.Add("playlists", playlistsPanel);

            AssociationManagementPanel associationsPanel = new AssociationManagementPanel();
            associationsPanel.MainForm = this;
            associationsPanel.MediaSoftwareService = mediaSoftwareServices[ITunesServiceImpl.SERVICE_NAME];
            associationsPanel.DevicesManager = supportedDevicesManager;
            associationsPanel.Model = modelRepository;
            panels.Add("associations", associationsPanel);

            panels.Add("preferences", new PreferencesPanel());

            SetCommonPanelProperties();
        }