public BufferSizeInformation(BufferSizeType type) { switch (type) { case BufferSizeType.Buffer80x25: Columns = 80; Rows = 25; CharWidth = CHARWIDTH; CharHeight = CHARHEIGHT25; break; case BufferSizeType.Buffer80x50: Columns = 80; Rows = 50; CharWidth = CHARWIDTH; CharHeight = CHARHEIGHT50; break; default: throw new NotImplementedException(); } BufferSizeType = type; }
public BufferSizeInformation(BufferSizeType type) { switch (type) { case BufferSizeType.Buffer80x25: Columns = 80; Rows = 25; CharWidth = CHARWIDTH; CharHeight = CHARHEIGHT25; break; case BufferSizeType.Buffer80x50: Columns = 80; Rows = 50; CharWidth = CHARWIDTH; CharHeight = CHARHEIGHT50; break; default: throw new NotImplementedException(); } BufferSizeType = type; }