Recently, I'm going to work, just write something, give yourself, spur incentives! /// ///// The name space: MemoryTableDemo /// ///// version number: BEAT 0.1 /// // Naming space contains classes and its function description: /////morytable table /// MemoryRow table Category /// Memorycell table cell class ///// Developer: Zhu Liang /// Development time: 2004.10.30 /// /// summary>
Using system;
Namespace MemoryTableDemo {/// /// Table /// summary> public class memoryTable {/// /// Private line set /// summary> public memoryrow [] m_mrrows; /// /// Row attribute set /// summary> public memoryrow [] rower {get {return m_mrrows;} set {m_mrrows = value;}} /// /// Table constructor Function logic /// summary> /// Table number of lines param> /// Table number param> public memorytable (int Rowcount) , int color) {// Initialization line set ROWS = new memoryrow [RowCount]; for (int i = 0; i
For (int J = 0; j
/ / Add cell object to cell collection, save Cell object information, end Cell object lifecycle row.cells [j] = cell;} // will add row objects to row collection, save ROW object information, end ROW object lifecycle Rows [i] = row;}}} /// /// Table line class /// summary> public class memoryrow {/// /// Private cell collection /// < / summary> private meterycell [] m_mccells; /// /// cell property set /// summary> public memoryCell [] cells {get {return m_mccells;} set {m_mccells = value;}} / // /// line constructive function logic /// summary> /// cell number param> public memoryRow (int cellcount) {// initialization unit collection Cells = new memoryCell [Cellcount]; for (int i = 0; i