// private ListData<Subject> subjects; public DataDoc(string name) { if (DataDocSchemaContainer.Instance().Contains(name)) { this.schema = DataDocSchemaContainer.Instance().GetItem(name); } }
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); }