// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// The About View Model
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.ViewModels
{
using System;
using HandBrake.Interop.Utilities;
using HandBrakeWPF.Properties;
using HandBrakeWPF.ViewModels.Interfaces;
///
/// The About View Model
///
public class AboutViewModel : ViewModelBase, IAboutViewModel
{
///
/// Initializes a new instance of the class.
///
public AboutViewModel()
{
this.Title = "About HandBrake";
}
///
/// Gets Version.
///
public string Version
{
get
{
return string.Format("{0}", VersionHelper.GetVersion());
}
}
public string License
{
get => string.Format("{0}{1}{1}{2}", Resources.About_Copyright, Environment.NewLine, Resources.About_GPL);
}
///
/// Close this window.
///
public void Close()
{
this.TryClose();
}
}
}