Пример #1
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method resets the data.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnReset()
        {
            EditXmlSource.TransformDataFromObject(XmlSource, null, false);
            ResetItems();

            #region protected
            #endregion protected

            EditXmlSource.ResetModified(false);
        }
Пример #2
0
 ///--------------------------------------------------------------------------------
 /// <summary>This method sets the default values.</summary>
 ///--------------------------------------------------------------------------------
 protected override void OnSetDefaults()
 {
     if (XmlSource.ReverseInstance != null)
     {
         EditXmlSource.TransformDataFromObject(XmlSource.ReverseInstance, null, false);
     }
     else if (XmlSource.IsAutoUpdated == true)
     {
         EditXmlSource.TransformDataFromObject(XmlSource, null, false);
     }
     else
     {
         XmlSource newXmlSource = new XmlSource();
         newXmlSource.SpecificationSourceID = EditXmlSource.SpecificationSourceID;
         EditXmlSource.TransformDataFromObject(newXmlSource, null, false);
     }
     EditXmlSource.ResetModified(true);
 }