Beispiel #1
0
        /// <summary>
        /// Shows the codec settings form.
        /// </summary>
        /// <remarks>Documented by Dev02, 2008-04-15</remarks>
        private void ShowCodecSettings()
        {
            CodecSettings settingsForm = new CodecSettings();
            settingsForm.Codecs = codecs;
            settingsForm.ShowEncoder = Settings.Default.ShowEncodingWindow;
            settingsForm.ShowDecoder = Settings.Default.ShowDecodingWindow;
            settingsForm.MinimizeWindows = Settings.Default.MimimizeWindows;

            if (settingsForm.ShowDialog() == DialogResult.OK)
            {
                codecs = settingsForm.Codecs;
                Settings.Default.ShowEncodingWindow = settingsForm.ShowEncoder;
                Settings.Default.ShowDecodingWindow = settingsForm.ShowDecoder;
                Settings.Default.MimimizeWindows = settingsForm.MinimizeWindows;
                Settings.Default.Save();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Shows the codec settings.
        /// </summary>
        /// <returns></returns>
        /// <remarks>Documented by Dev02, 2008-04-15</remarks>
        public static DialogResult ShowCodecSettings(Settings settings)
        {
            Codecs.Codecs codecs = new MLifter.AudioTools.Codecs.Codecs();
            codecs.XMLString = settings.CodecSettings;

            CodecSettings codecSettings = new CodecSettings();
            codecSettings.Codecs = codecs;
            codecSettings.EnableDecodeSettings = false;
            codecSettings.ShowEncoder = settings.ShowEncoderWindow;
            codecSettings.MinimizeWindows = settings.MinimizeEncoderWindow;

            DialogResult result = codecSettings.ShowDialog();

            if (result == DialogResult.OK)
            {
                settings.CodecSettings = codecSettings.Codecs.XMLString;
                settings.ShowEncoderWindow = codecSettings.ShowEncoder;
                settings.MinimizeEncoderWindow = codecSettings.MinimizeWindows;
            }

            return result;
        }