using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;
using Tango.SharedUI;
namespace Tango.FSE.Common
{
public class FSEDialogViewVM : DialogViewVM
{
protected FSESettings Settings { get; set; }
private bool _autoMode;
///
/// Will apply the default cancel and OK buttons.
///
public bool AutoMode
{
get { return _autoMode; }
set { _autoMode = value; RaisePropertyChangedAuto(); }
}
private bool _hasDefault;
///
/// Makes the OK button press by default.
///
public bool HasDefault
{
get { return _hasDefault; }
set { _hasDefault = value; RaisePropertyChangedAuto(); }
}
private String _okText;
///
/// Gets or sets the OK button text.
///
public String OKText
{
get { return _okText; }
set { _okText = value; }
}
private String _cancelText;
///
/// Gets or sets the cancel button text.
///
public String CancelText
{
get { return _cancelText; }
set { _cancelText = value; RaisePropertyChangedAuto(); }
}
private bool _canCancel;
///
/// Gets or sets a value indicating whether to display the cancel button.
/// When CanClose is set to false, the cancel button will also be hidden.
///
public bool CanCancel
{
get { return _canCancel; }
set { _canCancel = value; RaisePropertyChangedAuto(); }
}
///
/// Initializes a new instance of the class.
///
public FSEDialogViewVM() : base()
{
AutoMode = true;
CanCancel = true;
HasDefault = true;
Settings = SettingsManager.Default.GetOrCreate();
}
}
}