public Stat_Xiti Clone() { Stat_Xiti obj = new Stat_Xiti(); obj.count = this.count; obj.ratioAnswer = this.ratioAnswer; obj.ratioRight = this.ratioRight; foreach (Stat_XitiItem item in list) { obj.list.Add(item); } return(obj); }
public Stat() { handon = new Stat_Handon(); xiti = new Stat_Xiti(); reward = new Stat_Reward(); callname = new Stat_Callname(); foreach (User si in Global.g_Studentlist) { StudentReward item = new StudentReward(); item.uid = si.id; item.name = si.name; item.imageurl = si.imageurl; reward.list.Add(item); StudentCallname sc = new StudentCallname(); sc.uid = si.id; sc.name = si.name; sc.imageurl = si.imageurl; sc.point = 0; callname.list.Add(sc); } }