using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core.Commands; using Tango.MachineStudio.Common.Notifications; namespace Tango.MachineStudio.UI.ViewModels { public class MachineLoginViewVM : DialogViewVM { public String Password { get; set; } public RelayCommand LoginCommand { get; set; } public RelayCommand CancelCommand { get; set; } public MachineLoginViewVM() { LoginCommand = new RelayCommand(Login); CancelCommand = new RelayCommand(Cancel); } private void Login(string password) { Password = password; Accept(); } } }