blob: 7744d04d07d17d9721828edd305f39189d5d8a29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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();
}
}
}
|