Exemplo n.º 1
0
        private void VerfiyButton_Click(object sender, RoutedEventArgs e)
        {
            string text     = EmailBox.Text;
            string subEmail = EmailTextBox.Text;
            string email    = text + "@" + EmailTextBox.Text;
            string code     = VerifyBox.Text;

            bool check = DataManager.CheckVerifyCode(email, code);

            if (check)
            {
                timer.Stop();


                timer.timerevent -= TImerEventSender;


                timer = null;


                TimeCount.Content    = "인증이 완료되었습니다.";
                TimeCount.Foreground = Brushes.Green;


                isCanUseEmail = true;
                EmailButton.IsHitTestVisible   = false;
                VerfiyButton.IsHitTestVisible  = false;
                EmailBox.IsReadOnly            = true;
                EmailTextBox.IsReadOnly        = true;
                EmailCombobox.IsReadOnly       = true;
                EmailCombobox.IsHitTestVisible = false;
                VerifyBox.IsReadOnly           = true;
            }
            else
            {
                MessageBox.Show("코드를 확인해주세요.");
            }
        }