void manager_DeviceAdded(NikonManager sender, NikonDevice device) { this.device = device; // Set the device name label_name.Text = device.Name; device.SaveMedia(1); // Enable buttons not_tasweer_design(true); // Hook up device capture events device.ImageReady += new ImageReadyDelegate(device_ImageReady); device.CaptureComplete += new CaptureCompleteDelegate(device_CaptureComplete); }