private void submit_Click(object sender, EventArgs e)
 {
     Sound.PlaySE("se_buttonclick");
     try
     {
         Auser = UserManager.Register(this.Username.Text, this.passwd1.Text);
         this.OnClose(true);
         DL.ADL.OnClose(false);
         Auser.Achievement.AchievementReach += DL.ADL.OnAchievementReach;
         Auser.FinishHanzi += Auser.Achievement.OnFinishHanzi;
         welcome Awelcome = new welcome(Auser);
         Awelcome.OnShow();
     }
     catch (UserException a)
     {
         wrong Wrong = new wrong(a.Message);
         Wrong.OnShow();
     }
 }
        private void dlu_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");
            try
            {
                Auser = UserManager.Login(this.name.Text, this.passwd.Text);
                Auser.ResetHanziWeekFinished();
                welcome Awelcom = new welcome(Auser);

                this.OnClose(false);
                Auser.FinishHanzi += Auser.Achievement.OnFinishHanzi;
                Auser.Achievement.AchievementReach += OnAchievementReach;

                Awelcom.OnShow();
            }
            catch (UserException a)
            {
                wrong Awrong = new wrong(a.Message);
                Awrong.Shown      += new EventHandler(BlockWindow);
                Awrong.FormClosed += new FormClosedEventHandler(UnblockWindow);
                Awrong.OnShow();
            }
        }
        private void prev_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");

            try
            {
                if (i - 1 < 0)
                {
                    throw new UserException("已返回字表顶端!");
                }
                Ahanzi = HanziIO.Read(Ahanzilist[--i].Zi);
                this.hanziPictureBox1.Hanzi = Ahanzi;
                this.paraphrase.Text        = Ahanzi.Info;
                this.infoLabel.Text         = "已成功载入汉字 " + "'" + Ahanzi.Zi + "'";
            }

            catch (UserException A)
            {
                wrong Awrong = new wrong(A.Message);
                Awrong.Shown      += BlockWindow;
                Awrong.FormClosed += UnblockWindow;
                Awrong.OnShow();
            }
        }
        private void dlu_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");
            try
               {
              Auser=UserManager.Login(this.name.Text,this.passwd.Text);
              Auser.ResetHanziWeekFinished();
              welcome Awelcom = new welcome(Auser);

              this.OnClose(false);
              Auser.FinishHanzi += Auser.Achievement.OnFinishHanzi;
              Auser.Achievement.AchievementReach += OnAchievementReach;

              Awelcom.OnShow();

            }
            catch(UserException a)
            {
                wrong Awrong = new wrong(a.Message);
                Awrong.Shown += new EventHandler(BlockWindow);
                Awrong.FormClosed += new FormClosedEventHandler(UnblockWindow);
                Awrong.OnShow();
            }
        }
        private void submit_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");
            try
            {
                Auser = UserManager.Register(this.Username.Text, this.passwd1.Text);
                this.OnClose(true);
                DL.ADL.OnClose(false);
                Auser.Achievement.AchievementReach += DL.ADL.OnAchievementReach;
                Auser.FinishHanzi += Auser.Achievement.OnFinishHanzi;
                welcome Awelcome = new welcome(Auser);
                Awelcome.OnShow();

            }
            catch (UserException a)
            {
                wrong Wrong = new wrong(a.Message);
                Wrong.OnShow();

            }
        }
        private void prev_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");

            try
            {
                if (i - 1 < 0)
                    throw new UserException("已返回字表顶端!");
                Ahanzi = HanziIO.Read(Ahanzilist[--i].Zi);
                this.hanziPictureBox1.Hanzi = Ahanzi;
                this.paraphrase.Text = Ahanzi.Info;
                this.infoLabel.Text = "已成功载入汉字 " + "'" + Ahanzi.Zi + "'";
            }

            catch (UserException A)
            {
                wrong Awrong = new wrong(A.Message);
                Awrong.Shown += BlockWindow;
                Awrong.FormClosed += UnblockWindow;
                Awrong.OnShow();
            }
        }