Пример #1
0
        /// <summary>
        /// Clone this object
        /// </summary>
        /// <returns>
        /// The <see cref="object"/>.
        /// </returns>
        public AudioBehaviours Clone()
        {
            AudioBehaviours cloned = new AudioBehaviours
            {
                SelectedBehaviour = this.selectedBehaviour,
                SelectedLangauges = new BindingList <string>()
            };

            foreach (var item in this.SelectedLangauges)
            {
                cloned.SelectedLangauges.Add(item);
            }

            return(cloned);
        }
Пример #2
0
 /// <summary>
 /// Update this preset.
 /// The given parameters should be copy-constructed.
 /// </summary>
 /// <param name="task">
 /// The task.
 /// </param>
 /// <param name="audioBehaviours">
 /// The audio behaviours.
 /// </param>
 /// <param name="subtitleBehaviours">
 /// The subtitle behaviours.
 /// </param>
 public void Update(EncodeTask task, AudioBehaviours audioBehaviours, SubtitleBehaviours subtitleBehaviours)
 {
     this.Task = task;
     this.AudioTrackBehaviours = audioBehaviours;
     this.SubtitleTrackBehaviours = subtitleBehaviours;
 }
Пример #3
0
        /// <summary>
        /// Prepare the Preset window to create a Preset Object later.
        /// </summary>
        /// <param name="task">
        /// The Encode Task.
        /// </param>
        /// <param name="title">
        /// The title.
        /// </param>
        /// <param name="audioBehaviours">
        /// The audio Behaviours.
        /// </param>
        /// <param name="subtitleBehaviours">
        /// The subtitle Behaviours.
        /// </param>
        public void Setup(EncodeTask task, Title title, AudioBehaviours audioBehaviours, SubtitleBehaviours subtitleBehaviours)
        {
            this.Preset.Task = new EncodeTask(task);
            this.Preset.AudioTrackBehaviours = audioBehaviours.Clone();
            this.Preset.SubtitleTrackBehaviours = subtitleBehaviours.Clone();
            this.selectedTitle = title;

            switch (task.Anamorphic)
            {
                default:
                    this.SelectedPictureSettingMode = PresetPictureSettingsMode.Custom;
                    break;
                case Anamorphic.Strict:
                    this.SelectedPictureSettingMode = PresetPictureSettingsMode.SourceMaximum;
                    break;
            }
        }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AudioBehaviours"/> class.
 /// </summary>
 /// <param name="behaviours">
 /// The behaviours.
 /// </param>
 public AudioBehaviours(AudioBehaviours behaviours)
 {
     this.SelectedBehaviour = behaviours.SelectedBehaviour;
     this.SelectedLangauges = new BindingList<string>(behaviours.selectedLangauges);
 }
Пример #5
0
        /// <summary>
        /// Clone this object
        /// </summary>
        /// <returns>
        /// The <see cref="object"/>.
        /// </returns>
        public AudioBehaviours Clone()
        {
            AudioBehaviours cloned = new AudioBehaviours
                       {
                           SelectedBehaviour = this.selectedBehaviour,
                           SelectedLangauges = new BindingList<string>()
                       };

            foreach (var item in this.SelectedLangauges)
            {
                cloned.SelectedLangauges.Add(item);
            }

            return cloned;
        }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AudioBehaviours"/> class.
 /// </summary>
 /// <param name="behaviours">
 /// The behaviours.
 /// </param>
 public AudioBehaviours(AudioBehaviours behaviours)
 {
     this.SelectedBehaviour = behaviours.SelectedBehaviour;
     this.SelectedLangauges = new BindingList <string>(behaviours.selectedLangauges);
 }