aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Graphics/Machine Studio Modules/synchronization.jpg
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Graphics/Machine Studio Modules/synchronization.jpg')
0 files changed, 0 insertions, 0 deletions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
using Tango.SharedUI;

namespace Tango.MachineStudio.ThreadExtensions.ViewModels
{
    public class AddItemDialogVM : DialogViewVM
    {
        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value;
                RaisePropertyChangedAuto();
                SaveCommand.RaiseCanExecuteChanged();
            }
        }

       
        /// <summary>
        /// Gets or sets the login command.
        /// </summary>
        public RelayCommand SaveCommand { get; set; }

        /// <summary>
        /// Gets or sets the cancel command.
        /// </summary>
        public RelayCommand CancelCommand { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="MachineLoginViewVM"/> class.
        /// </summary>
        public AddItemDialogVM()
        {
            SaveCommand = new RelayCommand(Accept, () => false == String.IsNullOrEmpty(Name));
            CancelCommand = new RelayCommand(Cancel);
        }
        
    }
}