Ejemplo n.º 1
0
        private void InitControls()
        {
            _bsControlsData = new BindingSource();

            lbIndex.DataBindings.Add("Text", _bsControlsData, "Index_Display");

            cbLanguage.DataSource    = Languages.Iso639;
            cbLanguage.ValueMember   = "Code";
            cbLanguage.DisplayMember = "Name";
            cbLanguage.SetSeparator(3);
            cbLanguage.DataBindings.Add("SelectedValue", _bsControlsData, "Language");

            cbSource.DataSource    = EnumHelpers.EnumToList <AudioSource>();
            cbSource.ValueMember   = "Index";
            cbSource.DisplayMember = "Text";
            cbSource.DataBindings.Add("SelectedValue", _bsControlsData, "AudioSource");

            chbTitle.DataBindings.Add("Checked", _bsControlsData, "HasTitle");

            tbFormat.DataBindings.Add("Text", _bsControlsData, "Format");
            tbBitRate.DataBindings.Add("Text", _bsControlsData, "BitRate");
            tbChannels.DataBindings.Add("Text", _bsControlsData, "Channel");
            tbChannelsPosition.DataBindings.Add("Text", _bsControlsData, "ChannelPosition");
            tbSamplingRate.DataBindings.Add("Text", _bsControlsData, "SamplingRate");
            tbResolution.DataBindings.Add("Text", _bsControlsData, "Resolution");
            tbDelay.DataBindings.Add("Text", _bsControlsData, "Delay");
            tbVideoDelay.DataBindings.Add("Text", _bsControlsData, "Video_Delay");
            tbStreamSize.DataBindings.Add("Text", _bsControlsData, "StreamSize");
        }