Example #1
0
 private async void streamingCheckBox_Checked(object sender, RoutedEventArgs e)
 {
     if (streamingCheckBox.IsChecked.Value)
     {
         await context.StartStreamAsync();
     }
     else
     {
         context.StopStream();
     }
 }
Example #2
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBox1.Checked)
     {
         context.StartStream();
     }
     else
     {
         context.StopStream();
     }
 }