Inheritance: System.Windows.Forms.UserControl
Beispiel #1
0
        public void DeviceRemovedEventHandler(CompatibleDevice removedDevice)
        {
            DevicesPanel devicesPanel = GetDevicesPanel();

            devicesPanel.RefreshDevicesList();

            trayIcon.ShowBalloonTip(2000, "Device removed", removedDevice.Name
                                    + " has been removed from the system.", ToolTipIcon.Info);
        }
Beispiel #2
0
        public void NewDeviceConnectedEventHandler(CompatibleDevice connectedDevice)
        {
            DevicesPanel devicesPanel = GetDevicesPanel();

            devicesPanel.RefreshDevicesList();

            trayIcon.ShowBalloonTip(2000, "New device connected", connectedDevice.Name
                                    + " has been connected and is ready to be synchronized.", ToolTipIcon.Info);
        }
Beispiel #3
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();
        }
Beispiel #4
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();
        }