From c70a9eb8cd000862c0f31db19e800a312b2b296e Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 25 Jan 2014 21:12:38 +0000 Subject: WinGui: Tidy up a few cosmetic issues and enable the picture preview code in the background so it can get some testing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5991 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../ViewModels/StaticPreviewViewModel.cs | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs index d836f6d49..fd683fc2a 100644 --- a/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs @@ -172,21 +172,11 @@ namespace HandBrakeWPF.ViewModels #region Public Methods and Operators - /// - /// The preview frame. - /// - /// - /// The image. - /// - /// - /// The task. - /// - public void PreviewFrame(BitmapImage image, EncodeTask task) + public void UpdatePreviewFrame(EncodeTask task) { this.Task = task; - this.Width = (int)Math.Ceiling(image.Width); - this.Height = (int)Math.Ceiling(image.Height); - this.PreviewImage = image; + this.UpdatePreviewFrame(); + this.DisplayName = "Picture Preview"; } /// @@ -198,10 +188,11 @@ namespace HandBrakeWPF.ViewModels if (image != null) { - this.PreviewFrame(image, this.Task); + this.Width = (int)Math.Ceiling(image.Width); + this.Height = (int)Math.Ceiling(image.Height); + this.PreviewImage = image; } } - #endregion } } \ No newline at end of file -- cgit v1.2.3