CloudBuilder/CloudBuilder.Gui/ExFormSnapshotDifferenceEntry.cs
owenchen 1c0c83af5f ow
2026-05-12 10:09:31 +08:00

38 lines
1.4 KiB
C#

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;
}
}
}