summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-01-25 21:12:38 +0000
committersr55 <[email protected]>2014-01-25 21:12:38 +0000
commitc70a9eb8cd000862c0f31db19e800a312b2b296e (patch)
treecdf5200cbee8b277d43520cb92a411d4158c39e3 /win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs
parent0bc190da0afda80b9a40b6d24a5416c568c23fa0 (diff)
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
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs21
1 files changed, 6 insertions, 15 deletions
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
- /// <summary>
- /// The preview frame.
- /// </summary>
- /// <param name="image">
- /// The image.
- /// </param>
- /// <param name="task">
- /// The task.
- /// </param>
- 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";
}
/// <summary>
@@ -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