private void btn_Sign_In_Click(object sender, RoutedEventArgs e) { _currentСlient = _common.SignIn(txt_NickName.Text, txt_Password.Text); if (_currentСlient != null) { this.Close(); } txt_NickName.Text = String.Empty; txt_Password.Text = String.Empty; }