public void OnFinishHanzi(Object sender, AchievementArgs args)
 {
     User user = sender as User;
     AchievementElement arcEle;
     if (!firstWeekPlanFinish && user.IsHanziWeekPlanFinish)
     {
         firstWeekPlanFinish = true;
         arcEle = new AchievementElement("firstWeekPlanFinish", FirstWeekPlanFinishStr, true);
         if (!arcList.Contains(arcEle)) arcList.Add(arcEle);
         if (AchievementReach != null) AchievementReach(this, String.Format(General, FirstWeekPlanFinishStr));
     }
     if (!completeHanzi_10 && user.HanziTotalFinished >= 10)
     {
         completeHanzi_10 = true;
         arcEle = new AchievementElement("completeHanzi_10", String.Format(CompleteHanziStr, 10), true);
         if (!arcList.Contains(arcEle)) arcList.Add(arcEle);
         if (AchievementReach != null) AchievementReach(this, String.Format(General,
                 String.Format(CompleteHanziStr, 10)));
     }
     else if (!completeHanzi_100 && user.HanziTotalFinished >= 100)
     {
         completeHanzi_100 = true;
         arcEle = new AchievementElement("completeHanzi_100", String.Format(CompleteHanziStr, 100), true);
         if (!arcList.Contains(arcEle)) arcList.Add(arcEle);
         if (AchievementReach != null) AchievementReach(this, String.Format(General,
                 String.Format(CompleteHanziStr, 100)));
     }
     else if (!completeHanzi_1000 && user.HanziTotalFinished >= 1000)
     {
         completeHanzi_1000 = true;
         arcEle = new AchievementElement("completeHanzi_1000", String.Format(CompleteHanziStr, 1000), true);
         if (!arcList.Contains(arcEle)) arcList.Add(arcEle);
         if (AchievementReach != null) AchievementReach(this, String.Format(General,
                 String.Format(CompleteHanziStr, 1000)));
     }
 }
        public void OnFinishHanzi(Object sender, AchievementArgs args)
        {
            User user = sender as User;
            AchievementElement arcEle;

            if (!firstWeekPlanFinish && user.IsHanziWeekPlanFinish)
            {
                firstWeekPlanFinish = true;
                arcEle = new AchievementElement("firstWeekPlanFinish", FirstWeekPlanFinishStr, true);
                if (!arcList.Contains(arcEle))
                {
                    arcList.Add(arcEle);
                }
                if (AchievementReach != null)
                {
                    AchievementReach(this, String.Format(General, FirstWeekPlanFinishStr));
                }
            }
            if (!completeHanzi_10 && user.HanziTotalFinished >= 10)
            {
                completeHanzi_10 = true;
                arcEle           = new AchievementElement("completeHanzi_10", String.Format(CompleteHanziStr, 10), true);
                if (!arcList.Contains(arcEle))
                {
                    arcList.Add(arcEle);
                }
                if (AchievementReach != null)
                {
                    AchievementReach(this, String.Format(General,
                                                         String.Format(CompleteHanziStr, 10)));
                }
            }
            else if (!completeHanzi_100 && user.HanziTotalFinished >= 100)
            {
                completeHanzi_100 = true;
                arcEle            = new AchievementElement("completeHanzi_100", String.Format(CompleteHanziStr, 100), true);
                if (!arcList.Contains(arcEle))
                {
                    arcList.Add(arcEle);
                }
                if (AchievementReach != null)
                {
                    AchievementReach(this, String.Format(General,
                                                         String.Format(CompleteHanziStr, 100)));
                }
            }
            else if (!completeHanzi_1000 && user.HanziTotalFinished >= 1000)
            {
                completeHanzi_1000 = true;
                arcEle             = new AchievementElement("completeHanzi_1000", String.Format(CompleteHanziStr, 1000), true);
                if (!arcList.Contains(arcEle))
                {
                    arcList.Add(arcEle);
                }
                if (AchievementReach != null)
                {
                    AchievementReach(this, String.Format(General,
                                                         String.Format(CompleteHanziStr, 1000)));
                }
            }
        }