ファイル
YMM4-UndoTree/UndoTree.Tests/ForeignTypes.cs
T

42 行
962 B
C#

using System.ComponentModel.DataAnnotations;
using System.Globalization;
using YukkuriMovieMaker.UndoRedo;
namespace Foreign
{
public sealed class Animation
{
public double Length { get; set; }
}
public static class ForeignTexts
{
public static string Name => IsJapanese ? "他社のぼかし" : "Foreign blur";
public static string Amount => IsJapanese ? "強さ" : "Strength";
static bool IsJapanese => CultureInfo.CurrentUICulture.TwoLetterISOLanguageName == "ja";
}
public sealed class ForeignEffect : UndoRedoable
{
int amount;
public string Label => ForeignTexts.Name;
[Display(Name = nameof(ForeignTexts.Amount), ResourceType = typeof(ForeignTexts))]
public int Amount
{
get => amount;
set => Set(ref amount, value);
}
}
}
namespace YukkuriMovieMakerExtras
{
public sealed class Animation
{
}
}