public betcountonly(betcountonly by) { if (by != null) { this.dgonnumber = by.dgonnumber; this.dgonRate = by.dgonRate; } else { this.dgonnumber = 0; this.dgonRate = 0; } }
public BetCountViewModel(string bcd, int bcdid) { this.dgonname = bcd; this.dgonsn = bcdid; this.donly = new List <betcountonly>(); for (int i = 0; i < 5; i++) { betcountonly beonly = new betcountonly(null); beonly.dgonnumber = i + 1; beonly.dgonRate = 0; this.donly.Add(new betcountonly(beonly)); } }