상속: System.Windows.Forms.UserControl
예제 #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);
        }
예제 #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);
        }
예제 #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();
        }
예제 #4
0
파일: MainForm.cs 프로젝트: notpod/Notpod
        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();
        }