Пример #1
0
 public MobaRow(List <string> listName)
 {
     this.item     = new Dictionary <string, MobaColumn>();
     this.rowState = MobaRowState.Noting;
     foreach (string current in listName)
     {
         this.Add(current, "");
     }
 }
Пример #2
0
        public MobaRow(DataRow dr)
        {
            this.item     = new Dictionary <string, MobaColumn>();
            this.rowState = MobaRowState.Noting;
            int num = 0;

            foreach (DataColumn dataColumn in dr.Table.Columns)
            {
                this.Add(dataColumn.ColumnName, dr[num].ToString());
                num++;
            }
        }
Пример #3
0
 public MobaColumn this[string rowName]
 {
     get
     {
         MobaColumn result;
         try
         {
             this.rowState = MobaRowState.Update;
             result        = this.RowItem[rowName];
         }
         catch (Exception ex)
         {
             throw ex;
         }
         return(result);
     }
     set
     {
         if (this.RowItem.TryGetValue(rowName, out this.outValue))
         {
             this.RowItem[rowName] = value;
         }
     }
 }
Пример #4
0
 public MobaColumn(string mText)
 {
     this.mobaColumnState = MobaRowState.Noting;
     this.mobaColumnText  = mText;
 }
Пример #5
0
 public MobaColumn()
 {
     this.mobaColumnState = MobaRowState.Noting;
     this.mobaColumnText  = string.Empty;
 }
Пример #6
0
 public MobaRow()
 {
     this.item     = new Dictionary <string, MobaColumn>();
     this.rowState = MobaRowState.Noting;
 }