public void Init(string title, AudioExtensions.IAudioDriver dr)
        {
            comboBoxCustomDevice.Items.AddRange(dr.GetAudioEndpoints().ToArray());
            comboBoxCustomDevice.SelectedItem = dr.GetAudioEndpoint();
            bool border = ExtendedControls.ThemeableFormsInstance.Instance?.ApplyToForm(this, System.Drawing.SystemFonts.DefaultFont) ?? true;

            this.Text = title;
            if (!border)
            {
                label1.Text = title;
            }
        }
Example #2
0
        public void Init(AudioExtensions.IAudioDriver dr)
        {
            comboBoxCustomDevice.Items.AddRange(dr.GetAudioEndpoints().ToArray());
            comboBoxCustomDevice.SelectedItem = dr.GetAudioEndpoint();

            var enumlist = new Enum[] { CFIDs.AudioDeviceConfigure, CFIDs.AudioDeviceConfigure_labelText };

            BaseUtils.Translator.Instance.TranslateControls(this, enumlist);

            bool border = ExtendedControls.Theme.Current?.ApplyDialog(this) ?? true;

            labelText.Visible = !border;
        }