private void SIGNUP_End_Registration_Click(object sender, RoutedEventArgs e) { InfoWindow.IsOpen = true; var checkNickName = _dal.CheckNickName(SignUp_UserName.Text); if (checkNickName == null && SignUp_FullName.Text != string.Empty && SignUp_Password.Password != string.Empty) { _dal.SignUp_NewUser(SignUp_FullName.Text, SignUp_UserName.Text, SignUp_Password.Password); _dal.LogUser(SignUp_UserName.Text); InfoTextBlock.Text = "Registration was successful!!"; SignUp_FullName.Text = string.Empty; SignUp_Password.Password = string.Empty; SignUp_UserName.Text = string.Empty; } else { if (checkNickName != null) { InfoTextBlock.Text = "This User Name was created!"; } if (SignUp_FullName.Text == string.Empty || SignUp_UserName.Text == string.Empty || SignUp_Password.Password == string.Empty) { InfoTextBlock.Text = "Invalid Data"; } } }