private void Check_Click(object sender, RoutedEventArgs e) { if (_key == Convert.ToInt32(InputKey.Text)) { Info.Text = Defines.Congratulation; FacadeManager f = new(); Lector lector = f.Lectors.UpdateAcrivationLector(_id, true); if (lector.IsActivated == true) { this.Close(); SingleContents.GetContent().SignIn(); } else { Info.Text = "Ошибка активации аккаунта"; } } else { Info.Text = "Повторите ввод"; } }