Ejemplo n.º 1
0
        private void Login_btn_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            //Log in to the account
            if (Properties.Settings.Default.FirstTime)
            {
                System.Windows.Forms.MessageBox.Show("No Administration account found in this computer. Please use the 'Create a New Account' button to create a new administration account to start working with this software", "No account found", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
            }
            else
            {
                LoginAccountGrid.Margin = new Thickness(405, 0, 0, 0);

                DoubleAnimation da = new DoubleAnimation();
                da.From           = 0;
                da.To             = 1;
                da.Duration       = TimeSpan.FromSeconds(1);
                da.EasingFunction = new QuinticEase();

                LoginCancelButton.IsEnabled = true;

                LoginUserName.Focus();

                LoginAccountGrid.BeginAnimation(OpacityProperty, da);
            }
        }
Ejemplo n.º 2
0
 private void LoginClear_MouseClick(object sender, MouseEventArgs e)
 {
     LoginUserName.Text = "";
     LoginPassWord.Text = "";
     LoginUserName.Focus();
 }