Beispiel #1
0
 /// <summary>
 /// Sets the properties of the object from an instance of the data class.
 /// </summary>
 public void SetCurrentValues(SliderImageData data)
 {
     // set all fields
     FileName             = data.FileName;
     Extension            = data.Extension;
     ProjectFileDirectory = data.ProjectFileDirectory;
     Description          = data.Description;
     Enabled = data.Enabled;
 }
Beispiel #2
0
 /// <summary>
 /// Constructor used to create an instance of this table using the
 /// provided data class.
 /// </summary>
 public SliderImage(SqlHelper db, SliderImageData data)
     : this(db, data.ImageId)
 {
     SetCurrentValues(data);
 }
Beispiel #3
0
 /// <summary>
 /// Sets/Saves the current values to the original values class
 /// </summary>
 public override void SetOriginalValues()
 {
     m_Original = (SliderImageData)m_Current.Clone();
 }