using MaterialDesignThemes.Wpf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.FSE.Common.Notifications
{
public class InputBoxVM : MessageBoxVM
{
public PackIconKind Icon { get; set; }
public String InputHint { get; set; }
public int MaxCharacters { get; set; }
private String _input;
public String Input
{
get { return _input; }
set { _input = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); }
}
public InputBoxVM() : base()
{
HasCancel = true;
}
protected override bool CanOK()
{
return base.CanOK() && Input.IsNotNullOrEmpty();
}
}
}