示例#1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Create the interop host control.
            System.Windows.Forms.Integration.WindowsFormsHost host =
                new System.Windows.Forms.Integration.WindowsFormsHost();

            player        = new AxXDigiLiveCore.AxDigiLiveCore();
            player.Width  = 640;
            player.Height = 480;
            host.Child    = player;

            this.spPlayer.Children.Add(host);
            player.OnConnectionStatus   += Player_OnConnectionStatus;
            player.OnConnectionComplete += Player_OnConnectionComplete;

            LoadCamerasFromConfig();


            cboCameras.SelectedIndex = 0;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            // Create the interop host control.
            System.Windows.Forms.Integration.WindowsFormsHost host =
                new System.Windows.Forms.Integration.WindowsFormsHost();

            player = new AxXDigiLiveCore.AxDigiLiveCore();
            player.Width = 640;
            player.Height = 480;
            host.Child = player;

            this.spPlayer.Children.Add(host);
            player.OnConnectionStatus += Player_OnConnectionStatus;
            player.OnConnectionComplete += Player_OnConnectionComplete;

            LoadCamerasFromConfig();

            cboCameras.SelectedIndex = 0;
        }