using System.ComponentModel;

namespace GlobalVariableViewWPF;

public class GVRow : INotifyPropertyChanged
{
	private string gvName;

	private string gvValue;

	public string GVName
	{
		get
		{
			return gvName;
		}
		set
		{
			if (value != gvName)
			{
				gvName = value;
				OnPropertyChanged("GVName");
			}
		}
	}

	public string GVValue
	{
		get
		{
			return gvValue;
		}
		set
		{
			if (value != gvValue)
			{
				gvValue = value;
				OnPropertyChanged("GVValue");
			}
		}
	}

	public event PropertyChangedEventHandler PropertyChanged;

	protected virtual void OnPropertyChanged(string name)
	{
		this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
	}
}
