示例#1
0
 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();
 }
示例#2
0
 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;
 }
示例#3
0
 public PyFile()
 {
     _class_list = new ArrayList();
     _app_class = new PySection();
 }
示例#4
0
 public void RemSection(PySection sec)
 {
     _children.Remove(sec);
     Size -= sec.Size;
 }
示例#5
0
 public void AddSection(PySection sec)
 {
     _children.Add(sec);
     Size += sec.Size;
 }