private void CurrentPage_Click(object sender, RoutedEventArgs e) { ActiveSession active = new ActiveSession(_park); active.Show(); this.Close(); }
private void EnterTheApp_Click(object sender, RoutedEventArgs e) { ErrorBlock.Text = null; string login = EnterLogin.Text; string password = EnterPassword.Password; if (_park.UserExisting(login, password)) { ActiveSession active = new ActiveSession(_park); active.Show(); this.Close(); } else { ErrorBlock.Text = null; ErrorBlock.Text = $"Wrong login or password"; } }