public MobaRow(List <string> listName) { this.item = new Dictionary <string, MobaColumn>(); this.rowState = MobaRowState.Noting; foreach (string current in listName) { this.Add(current, ""); } }
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++; } }
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; } } }
public MobaColumn(string mText) { this.mobaColumnState = MobaRowState.Noting; this.mobaColumnText = mText; }
public MobaColumn() { this.mobaColumnState = MobaRowState.Noting; this.mobaColumnText = string.Empty; }
public MobaRow() { this.item = new Dictionary <string, MobaColumn>(); this.rowState = MobaRowState.Noting; }