1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/MainApp/ViewModel/ConfirmationViewModel.cs

27 lines
682 B
C#
Raw Normal View History

2023-07-12 22:41:31 +00:00
using System.Globalization;
namespace MSFSPopoutPanelManager.MainApp.ViewModel
{
public class ConfirmationViewModel
{
public string Title
{
get
{
2024-02-28 02:44:21 +00:00
var textInfo = new CultureInfo("en-US", false).TextInfo;
2023-07-12 22:41:31 +00:00
return $"Confirm {textInfo.ToTitleCase(ConfirmButtonText.ToLower())}";
}
}
public string Content { get; set; }
public string ConfirmButtonText { get; set; }
public ConfirmationViewModel(string content, string confirmButtonText)
{
Content = content;
ConfirmButtonText = confirmButtonText.ToUpper();
}
}
}