public void RecordMovie()
        {
            string resp = CameraDevice.GetProhibitionCondition(OperationEnum.RecordMovie);

            if (string.IsNullOrEmpty(resp))
            {
                var thread = new Thread(RecordMovieThread);
                thread.Start();
            }
        }
예제 #2
0
 public void StartLiveView()
 {
     try
     {
         string resp = CameraDevice.GetProhibitionCondition(OperationEnum.LiveView);
         if (string.IsNullOrEmpty(resp))
         {
             Task.Factory.StartNew(StartLiveViewThread);
         }
         else
         {
             Log.Error("Error starting live view " + resp);
         }
     }
     catch (Exception e)
     {
         Log.Error("Error starting live view ", e);
     }
 }
예제 #3
0
        private void StartLiveView()
        {
            if (!IsVisible)
            {
                return;
            }
            string resp = CameraDevice.GetProhibitionCondition(OperationEnum.LiveView);

            if (string.IsNullOrEmpty(resp))
            {
                Thread thread = new Thread(StartLiveViewThread);
                thread.Start();
                thread.Join();
            }
            else
            {
                Log.Error("Error starting live view " + resp);
                MessageBox.Show(TranslationStrings.LabelLiveViewError + "\n" + TranslationManager.GetTranslation(resp));
                return;
            }
        }