public SubProgram(string name, Coordinate origen, int size, int color, SectionOptions options) : base(origen, color) { Content = new FileCoordinateObject[size]; Name = name; Program = options.ProgramType; InitializeNull = options.InitializeNull; InnerSection = options.InnerSection; MadeByProgram = options.MadeByProgram; }
public void AddContent(FileCoordinateObject item) { try { if (ContentIndex < Content.Length) { Content[ContentIndex] = item; } else { FileObject[] temp = new FileObject[ContentIndex + 1]; Array.Copy(Content, temp, Content.Length); Content = temp; Content[ContentIndex] = item; } ContentIndex++; } catch (Exception e) { ErrorHandler.AddMessage(e); } }