private void LblFilterBtn_MouseDown(object sender, MouseButtonEventArgs e) { IndexToDo w = new IndexToDo(); w.Show(); this.Close(); }
private void BtnCancel_Click(object sender, RoutedEventArgs e) { IndexToDo w = new IndexToDo(); w.Show(); this.Close(); }
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."); } }