Ejemplo n.º 1
0
        protected bool IsDifferent()
        {
            IPersistence current = new XmlPersistenceImpl(FullPath, true);

            IBaseNodeInterface.Persist(current);

            IPersistence existing = new XmlPersistenceImpl(FullPath);

            return(current.RawContent != existing.RawContent);
        }
Ejemplo n.º 2
0
        bool IDecisionTree.Load(IPersistence persistence, string fullName)
        {
            if (IBaseNodeInterface.Retrieve(persistence))
            {
                FullPath = persistence.Name != "" ? persistence.Name : fullName;
                return(true);
            }

            return(false);
        }
Ejemplo n.º 3
0
 bool IDecisionTree.Save(IPersistence persistence, string fullName)
 {
     FullPath = persistence.Name != "" ? persistence.Name : fullName;
     return(IBaseNodeInterface.Persist(persistence));
 }