JD2022-TU1/main/tools/modules/JD.VideoPlayer.WPF/Settings/VideoPlayerSettings.cs

37 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Plume.Interfaces.Settings;
using Plume.WPF.Mvvm;
namespace JD.VideoPlayer.WPF.Settings
{
public enum AspectRatio
{
Original,
Stretch
}
public class VideoPlayerSettings : BindableBase, ISettings
{
private AspectRatio _aspectRatio = AspectRatio.Original;
private bool _showDebugInformations;
[DisplayName("Aspect Ratio"), Description("Aspect ratio of the video")]
public AspectRatio AspectRatio
{
get => _aspectRatio;
set => SetProperty(ref _aspectRatio, value);
}
[DisplayName("Debug Informations"), Description("Indicates whether you want to see debug informations like the current frame.")]
public bool ShowDebugInformations
{
get => _showDebugInformations;
set => SetProperty(ref _showDebugInformations, value);
}
}
}