private void ButtonBread2_Click(object sender, RoutedEventArgs e) { Hide(); UserWindow us = new UserWindow(); us.Show(); Close(); }
private void ButtonLogin_Click(object sender, RoutedEventArgs e) { if (_repo.Authorize(textBoxLogin.Text, textBoxPassword.ToString())) { UserWindow mw = new UserWindow(); mw.Show(); Close(); } else { MessageBox.Show("try input again"); } }