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); }
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); }
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(); }