diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs new file mode 100644 index 000000000..dc851864a --- /dev/null +++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs @@ -0,0 +1,58 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="StaticPreviewViewModel.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>
+// The Static Preview View Model
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.ViewModels
+{
+ using System.Windows.Media.Imaging;
+
+ using HandBrakeWPF.ViewModels.Interfaces;
+
+ /// <summary>
+ /// The Static Preview View Model
+ /// </summary>
+ public class StaticPreviewViewModel : ViewModelBase, IStaticPreviewViewModel
+ {
+ /// <summary>
+ /// The preview image.
+ /// </summary>
+ private BitmapImage previewImage;
+
+ /// <summary>
+ /// Gets or sets the preview image.
+ /// </summary>
+ public BitmapImage PreviewImage
+ {
+ get
+ {
+ return this.previewImage;
+ }
+ set
+ {
+ if (Equals(value, this.previewImage))
+ {
+ return;
+ }
+
+ this.previewImage = value;
+ this.NotifyOfPropertyChange(() => this.PreviewImage);
+ }
+ }
+
+ /// <summary>
+ /// The preview frame.
+ /// </summary>
+ /// <param name="image">
+ /// The image.
+ /// </param>
+ public void PreviewFrame(BitmapImage image)
+ {
+ this.PreviewImage = image;
+ }
+ }
+}
|