Exemplo n.º 1
0
        private void LblFilterBtn_MouseDown(object sender, MouseButtonEventArgs e)
        {
            IndexToDo w = new IndexToDo();

            w.Show();
            this.Close();
        }
Exemplo n.º 2
0
        private void BtnCancel_Click(object sender, RoutedEventArgs e)
        {
            IndexToDo w = new IndexToDo();

            w.Show();
            this.Close();
        }
Exemplo n.º 3
0
        private void BtnLogin_Click(object sender, RoutedEventArgs e)
        {
            State.currentUser = Db.Login(txtUser.Text, txtPass.Password);

            if (State.currentUser != null)
            {
                IndexToDo w = new IndexToDo();
                w.Show();
                this.Close();
            }
            else
            {
                txtUser.Text     = string.Empty;
                txtPass.Password = string.Empty;

                MessageBox.Show("Username or password is wrong! \n Please try again.");
            }
        }