Beispiel #1
0
        private void UIDisable_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                DisposeOfUIPreview();

                VirtualCameraProxyInst.DisableVirtualCamera();
            }
            catch (Exception ex)
            {
                VirtualCameraControlFailed?.Invoke(ex);
            }
        }
Beispiel #2
0
        private void UIRemove_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                DisposeOfUIPreview();

                VirtualCameraProxyInst.RemoveVirtualCamera();

                VirtualCameraControlRemoved?.Invoke(VirtualCameraProxyInst.SymbolicLink);
            }
            catch (Exception ex)
            {
                VirtualCameraControlFailed?.Invoke(ex);
            }
        }
Beispiel #3
0
        private async void UIEnable_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                DisposeOfUIPreview();

                VirtualCameraProxyInst.EnableVirtualCamera();

                await InitializeAsync();
            }
            catch (Exception ex)
            {
                VirtualCameraControlFailed?.Invoke(ex);
            }
        }