Ejemplo n.º 1
0
 private void Password_TextBox_GotFocus(object sender, RoutedEventArgs e)
 {
     if (animationCheck1)
     {
         var fade = new DoubleAnimation
         {
             To       = 1.0,
             Duration = new Duration(new TimeSpan(0, 0, 1))
         };
         Password_TextBox.BeginAnimation(OpacityProperty, fade);
         animationCheck1 = false;
     }
 }
Ejemplo n.º 2
0
 private void Password_TextBox_PasswordChanged(object sender, RoutedEventArgs e)
 {
     Password_TextBox.BeginAnimation(OpacityProperty, trash);
     if (animationCheck && Password_TextBox.Password.Length < 4)
     {
         Guid_Label.Content = "비밀번호는 4자 이상으로 해주세요";
         animationCheck     = false;
     }
     if (!animationCheck && Password_TextBox.Password.Length >= 4)
     {
         Password_TextBox_Check.BeginAnimation(OpacityProperty, fade);
         Guid_Label.Content = "비밀번호를 아래에 다시 적어주세요";
         animationCheck     = true;
     }
 }
Ejemplo n.º 3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
#if !DEBUG
            if (string.IsNullOrEmpty(Settings.Default.Password))
            {
                new TermsOfUseWindow().ShowDialog();
            }
#endif
            Password_TextBox.Focus();
            Guid_Label.BeginAnimation(OpacityProperty, fade);
            Guid_Label.Content = "저는 루시드 드림의 사용을 도와주는\n도우미, 루시입니다.";
            var sw = new Stopwatch();
            sw.Start();
            for (; ;)
            {
                System.Windows.Forms.Application.DoEvents();
                Thread.Sleep(1);
                sw.Stop();
                if (sw.Elapsed.TotalSeconds >= 2)
                {
                    sw.Restart();
                    break;
                }
                sw.Start();
            }
            Guid_Label.BeginAnimation(OpacityProperty, fade);
            Guid_Label.Content = "제가 지시하는 대로 따라주세요.";
            for (; ;)
            {
                System.Windows.Forms.Application.DoEvents();
                Thread.Sleep(1);
                sw.Stop();
                if (sw.Elapsed.TotalSeconds >= 2)
                {
                    break;
                }
                sw.Start();
            }
            Guid_Label.BeginAnimation(OpacityProperty, trash);
            Password_TextBox.BeginAnimation(OpacityProperty, fade);
            Guid_Label.Content = "비밀번호를 입력하세요";
        }