示例#1
0
        /// <summary>
        ///  Save all of nodes to a physical file/Database/.....
        /// </summary>
        /// <param name="FileName">filename which include fullpathDataBase connection /......</param>
        /// <returns>Operation is sucessful,return true otherwise false</returns>
        public bool Save(string FileName)
        {
            lock (Lockobject)
            {
                SaveObject = ObjectBuildFactory <ISaveData <int> > .Instance(SystemConfiguration.SaveDataClassName);

                if (SaveObject != null)
                {
                    SaveObject.SetSaveObject(RBTree);
                }
            }
            if (SaveObject != null)
            {
                return(SaveObject.Save(FileName));
            }
            else
            {
                return(false);
            }
        }