// -------------------------------------------------------------------------------------------------------------------- // // 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 HandBrake.ApplicationServices; 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 { string nightly = UserSettingService.GetUserSetting(ASUserSettingConstants.HandBrakeVersion).Contains("svn") ? " (SVN / Nightly Build)" : string.Empty; return string.Format( "{0} ({1}) {2}", UserSettingService.GetUserSetting(ASUserSettingConstants.HandBrakeVersion), UserSettingService.GetUserSetting(ASUserSettingConstants.HandBrakeBuild), nightly); } } /// /// Close this window. /// public void Close() { this.TryClose(); } } }