Esempio n. 1
0
        public void SaveChanges()
        {
            MOG_Project proj = MOG_ControllerProject.GetProject();

            if (proj != null)
            {
                // removed nodes
                foreach (classTreeNode tn in this.removedClasses)
                {
                    proj.ClassificationRemove(tn.props.Classification);
                }
                this.removedClasses.Clear();

                // new nodes
                foreach (classTreeNode tn in this.newClasses)
                {
                    if (!tn.IsAssetFilenameNode)
                    {
                        tn.props.Classification = tn.FullPath;
                        proj.ClassificationAdd(tn.FullPath);
                    }
                }
                this.newClasses.Clear();

                SaveConfigTree(this.tvClassifications.Nodes, proj);
            }
        }