Exemplo n.º 1
0
 public static bool IsAutoConnect(CameraConfigurationItem ci1)
 {
     var res = false;
     if (connect)
     {
         if (connectAllCameras || (System.Array.IndexOf(connectCameraIds, ci1.id) > -1))
             res = true;
     }
     return res;
 }
Exemplo n.º 2
0
        public MotionForm()
        {
            //this.FormClosing += MotionForm_Closing;
              InitializeComponent();
              Log.OnLogMessageReceived += Log_OnLogMessageReceived;

              cci1 = new CameraConfigurationItem("1", videoViewerWF1);
              cci1.CameraStateChanged += OnCameraStateChanged;
              cci1.VideoCapturingStateChanged += OnVideoCapturingStateChanged;
            cci1.VideoViewerVisible = viewCameraCb1.Checked;

              cci2 = new CameraConfigurationItem("2", videoViewerWF2);
              cci2.CameraStateChanged += OnCameraStateChanged;
              cci2.VideoCapturingStateChanged += OnVideoCapturingStateChanged;
            cci2.VideoViewerVisible = viewCameraCb2.Checked;

            var data = new CameraURLBuilderData { IPCameraEnabled = false };
              cameraUrlBuilder = new CameraURLBuilderWF(data);
        }
Exemplo n.º 3
0
 void viewCamera_CheckedChanged(object sender, CameraConfigurationItem ci)
 {
     var cb = sender as CheckBox;
     ci.VideoViewerVisible = cb.Checked;
     if (ci.VideoViewerVisible)
         ci.videoViewer.Start();
     else
         ci.videoViewer.Stop();
 }