private void MediaDeviceFolderBrowseDialog_Shown(object sender, EventArgs e) { MediaFileExplorer = new MediaDevicesFileExplorer(); MediaFileExplorer.ConnectDevice(DeviceName); FileExplorer.AttachSource(MediaFileExplorer); MediaFileExplorer.DeviceConnected += MediaFileExplorer_DeviceConnected; MediaFileExplorer.DeviceDisconnected += MediaFileExplorer_DeviceDisconnected; Connect(); }