void videoControl_FlashCallback(YoYoStudio.Controls.Winform.FlexCallbackCommand cmd, List <string> args)
 {
     switch (cmd)
     {
     case YoYoStudio.Controls.Winform.FlexCallbackCommand.LoadComplete:
         var cameras = new List <string> {
             ""
         };
         string[] cams = videoControl.CallFlash(YoYoStudio.Controls.Winform.FlexCommand.GetCameras);
         if (cams != null && cams.Length > 0)
         {
             cameras.AddRange(cams);
         }
         VideoConfigurationViewModel cvm = videoControl.DataContext as VideoConfigurationViewModel;
         if (cvm != null)
         {
             cvm.Cameras = new System.Collections.ObjectModel.ObservableCollection <string>(cameras);
         }
         break;
     }
 }
Exemplo n.º 2
0
 void cameraComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     videoControl.CallFlash(YoYoStudio.Controls.Winform.FlexCommand.StartCamera, new string[] { cameraComboBox.SelectedIndex.ToString() });
 }