예제 #1
0
        //   private ListData<Subject> subjects;

        public DataDoc(string name)
        {
            if (DataDocSchemaContainer.Instance().Contains(name))
            {
                this.schema = DataDocSchemaContainer.Instance().GetItem(name);
            }
        }
예제 #2
0
        public bool SaveSubject(string path, string title, string text, string chartId)
        {
            Subject subj = GetSubject(path);

            subj.Save(title, text, chartId);
            DataDocSchemaContainer.Instance().UpdateItem(schema.Id, schema);
            return(true);
        }