public PyFileEditor() { _py_mem = new StringCollection(); _py_sections = new PySection[_sec_count]; for (int i=0; i<_sec_count; i++) { _py_sections[i] = new PySection(); _py_sections[i].Section = (PyFileSection)i; } // SetDefaultIndexes(); CreateEmpty(); }
public PyClass() { _lines = new StringCollection(); _sections = new PySection[_sec_count]; for (int i=0; i<_sec_count; i++) { _sections[i] = new PySection(); _sections[i].Begin = 1 + i*2; } _cur_begin = -1; _cur_size = -1; _cur_section = PyClassSection.PYDEF_NONE; }
public PyFile() { _class_list = new ArrayList(); _app_class = new PySection(); }
public void RemSection(PySection sec) { _children.Remove(sec); Size -= sec.Size; }
public void AddSection(PySection sec) { _children.Add(sec); Size += sec.Size; }