public void LoadFramework()
 {
     if (_framework == null)
     {
         _framework = new EosFramework();
         _framework.CameraAdded += this.HandleCameraAdded;
     }
 }
 private static uint HandleCameraAddedEvent(IntPtr context)
 {
     lock (__eventLock)
     {
         if (EosFramework.GlobalCameraAdded != null)
         {
             // TODO: find something better than null to pass as sender!
             EosFramework.GlobalCameraAdded(null, EventArgs.Empty);
         }
     }
     return(Edsdk.EDS_ERR_OK);
 }
 private void InitCanon()
 {
     try
     {
         if (_framework == null)
         {
             _framework = new EosFramework();
             _framework.CameraAdded += _framework_CameraAdded;
         }
         AddCanonCameras();
     }
     catch (Exception exception)
     {
         Log.Error("Unable init canon driver", exception);
     }
 }
Beispiel #4
0
		public static void Start()
		{
			FFramework = new EosFramework();
			Refresh();
			FFramework.CameraAdded +=FFramework_CameraAdded;
		}