Пример #1
0
 private void WorkCheckBoxChecked(object sender, RoutedEventArgs e)
 {
     DataAssistant.IsWork = (bool)WorkCheckBox.IsChecked;
     if (!DataAssistant.IsWork)
     {
         ControlRecording.StopRecording();
     }
 }
Пример #2
0
 private static void Tim_Tick(object sender, EventArgs e)
 {
     if (DataAssistant.IsWork)
     {
         if (DataSignal.ChoiceDeviceIndex != -1)
         {
             if ((int)(Math.Round(DataSignal.Devices[DataSignal.ChoiceDeviceIndex].AudioMeterInformation.MasterPeakValue * 100)) >= DataSignal.LevelDevice)
             {
                 ControlRecording.StartRecording();
             }
             else
             {
                 ControlRecording.StopRecording();
             }
         }
     }
 }