﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnvironmentEditor
{
    class EnvPathItem : INotifyPropertyChanged
    {
        private string path;
        public EnvPathItem()
        {
            Path = "";
            Updated = false;
        }
        public EnvPathItem(string path)
        {
            this.path = path;
            Updated = false;
        }
        public bool Updated
        {
            get; set;
        }
        public string Path { get { return path; } set { this.path = value; RaisePropertyChanged("Path"); Updated = true; } }
        protected void RaisePropertyChanged(string propName)
        {
            var handler = PropertyChanged;
            if (handler != null)
                handler(this, new PropertyChangedEventArgs(propName));
        }
        public event PropertyChangedEventHandler PropertyChanged;
    }
}
