Exemple #1
0
        private void frmAVDevices_Load(object sender, System.EventArgs e)
        {
            StaticText();
            InitializeCXPValues();

            // Perf thread
            UpdatePerfLabel();
            if (pcCPU != null || pcMem != null)
            {
                tmrPerf.Start();
            }

            // Create the form we will be logging to
            trouble = new frmAVTroubleshooting();

            try
            {
                // Populate device lists
                DiscoverDevices();

                // Show the form before initializing devices, since that can take a while
                this.Text   = "Audio/Video Settings - Initializing devices...";
                this.Cursor = Cursors.WaitCursor;
                Show();
                Refresh();

                // Restore any previously selected devices
                RestoreAudio();
                RestoreVideo();
            }
            finally
            {
                this.Text   = "Audio/Video Settings";
                this.Cursor = Cursors.Default;
            }
        }
        private void frmAVDevices_Load(object sender, System.EventArgs e)
        {
            //Initialize text fonts and strings
            InitText();

            //Initialize play local/remote and video window tiling checkboxes
            InitializeCXPValues();

            // Perf thread: Update memory/CPU display every couple of seconds.
            UpdatePerfLabel();
            if(pcCPU != null || pcMem != null)
            {
                tmrPerf.Start();
            }

            // Create the form we will be logging to
            trouble = new frmAVTroubleshooting();

            try
            {
                // Populate device lists
                DiscoverDevices();

                // Show the form before initializing devices.  The idea is that since we need
                // to build a graph to get the video properties, it might take some time.  In
                // practice I don't see it taking long at all for cameras I have tried.
                this.Text = Strings.InitializingAVDevices;
                this.Cursor = Cursors.WaitCursor;
                Show();
                Refresh();

                // Restore any previously selected devices
                RestoreAudio();
                RestoreVideo();
            }
            finally
            {
                this.Text = Strings.AudioVideoSettings;
                this.Cursor = Cursors.Default;
            }
        }
Exemple #3
0
        private void frmAVDevices_Load(object sender, System.EventArgs e)
        {
            StaticText();
            InitializeCXPValues();

            // Perf thread
            UpdatePerfLabel();
            if(pcCPU != null || pcMem != null)
            {
                tmrPerf.Start();
            }

            // Create the form we will be logging to
            trouble = new frmAVTroubleshooting();

            try
            {
                // Populate device lists
                DiscoverDevices();

                // Show the form before initializing devices, since that can take a while
                this.Text = "Audio/Video Settings - Initializing devices...";
                this.Cursor = Cursors.WaitCursor;
                Show();
                Refresh();

                // Restore any previously selected devices
                RestoreAudio();
                RestoreVideo();
            }
            finally
            {
                this.Text = "Audio/Video Settings";
                this.Cursor = Cursors.Default;
            }
        }