Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");
            welcome Welcome = new welcome(user);

            this.OnClose(true);
            Welcome.OnShow();
        }
        private void doNotClose_Click(object sender, EventArgs e)
        {
            Sound.PlaySE("se_buttonclick");
            welcome Welcome = new welcome(Auser);

            (Aform as learn).OnClose(true);
            this.OnClose(true);
            Welcome.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 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 button1_Click(object sender, EventArgs e)
 {
     Sound.PlaySE("se_buttonclick");
     welcome Welcome = new welcome(user);
     this.OnClose(true);
     Welcome.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 doNotClose_Click(object sender, EventArgs e)
 {
     Sound.PlaySE("se_buttonclick");
     welcome Welcome = new welcome(Auser);
     (Aform as learn).OnClose(true);
     this.OnClose(true);
     Welcome.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();

            }
        }