예제 #1
0
        private string GetMeTxt(MeritRecord record)
        {
            string txt = "";

            if (record.MeritA.HasValue && record.MeritA.Value > 0)
            {
                txt += "大功:" + record.MeritA.Value.ToString() + " ";
            }

            if (record.MeritB.HasValue && record.MeritB.Value > 0)
            {
                txt += "小功:" + record.MeritB.Value.ToString() + " ";
            }

            if (record.MeritC.HasValue && record.MeritC.Value > 0)
            {
                txt += "嘉獎:" + record.MeritC.Value.ToString() + " ";
            }
            return(txt);
        }
예제 #2
0
 private int MeritSort(MeritRecord x, MeritRecord y)
 {
     return(x.OccurDate.CompareTo(y.OccurDate));
 }