mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-24 23:00:12 +00:00
27 lines
687 B
C#
27 lines
687 B
C#
|
using System.Globalization;
|
|||
|
|
|||
|
namespace MSFSPopoutPanelManager.MainApp.ViewModel
|
|||
|
{
|
|||
|
public class ConfirmationViewModel
|
|||
|
{
|
|||
|
public string Title
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
TextInfo textInfo = new CultureInfo("en-US", false).TextInfo;
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|