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