summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/Controls/AudioView.xaml.cs
blob: 417a1226c8d589b8c096e70695f9e37b82dee0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AudioView.xaml.cs" company="HandBrake Project (http://handbrake.fr)">
//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
//   Interaction logic for AudioView.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace HandBrakeWPF.Views.Controls
{
    using System;
    using System.Collections.ObjectModel;
    using System.Windows;
    using System.Windows.Controls;

    using HandBrake.ApplicationServices.Model.Encoding;

    /// <summary>
    /// Interaction logic for AudioView.xaml
    /// </summary>
    public partial class AudioView : UserControl
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AudioView"/> class.
        /// </summary>
        public AudioView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// The "Query" Dependancy Property
        /// </summary>
        public static readonly DependencyProperty AudioTracksProperty = DependencyProperty.Register("AudioTracks", typeof(ObservableCollection<AudioTrack>), typeof(AudioView));

        /// <summary>
        /// Gets or sets State.
        /// </summary>
        public ObservableCollection<AudioTrack> AudioTracks
        {
            get { return (ObservableCollection<AudioTrack>)this.GetValue(AudioTracksProperty); }
            set { this.SetValue(AudioTracksProperty, value); }
        }


        /// <summary>
        /// Add a new Track
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        public void Add(object sender, RoutedEventArgs e)
        {
            this.AudioTracks.Add(new AudioTrack());
        }

        /// <summary>
        /// Remove a Track
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        public void Remove(object sender, RoutedEventArgs e)
        {
            throw new NotImplementedException();
        }
    }
}