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

namespace CloudBuilder.Gui
{
    public class ExFormSnapshotDifferenceEntry
    {
        public string ControlName { get; set; }
        public string DataPropertyName { get; set; }
        public string DisplayName { get; set; }
        public string NewDisplayValue { get; set; }
        public object NewValue { get; set; }
        public string OldDisplayValue { get; set; }
        public object OldValue { get; set; }

        // Methods
        public ExFormSnapshotDifferenceEntry(string controlName, string displayName, object oldValue, string oldDisplayValue, object newValue, string newDisplayValue)
            : this(controlName, displayName, oldValue, oldDisplayValue, newValue, newDisplayValue, null)
        {

        }

        public ExFormSnapshotDifferenceEntry(string controlName, string displayName, object oldValue, string oldDisplayValue, object newValue, string newDisplayValue, string dataPropertyName)
        {
            this.ControlName = controlName;
            this.DisplayName = displayName;
            this.OldValue = oldValue;
            this.OldDisplayValue = oldDisplayValue;
            this.NewValue = newValue;
            this.NewDisplayValue = newDisplayValue;
            this.DataPropertyName = dataPropertyName;
        }
    }
}
