Ejemplo n.º 1
0
        private async void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var interopWindow = new WindowInteropHelper(this);

            _hwnd = interopWindow.Handle;

            await _player.SetupAsync();
        }
Ejemplo n.º 2
0
        private async void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var interopWindow = new WindowInteropHelper(this);

            _hwnd = interopWindow.Handle;

            await Task.WhenAll(
                Task.Run(async() => { await _player.SetupAsync(); }),
                Task.Run(async() => { await _rotor_player.SetupAsync(); }));

            //await _player.SetupAsync();
            //await _rotor_player.SetupAsync();
        }