private void ButtonAccept_Click(object sender, RoutedEventArgs e)
        {
            //создание нового клиента
            var client = new Client(NameBox.Text, DayBox.Text, MonthBox.Text, YearBox.Text, PhoneBox.Text);

            Postgre.ExecuteNonQuery(client.ToQueryAdd());
            MainWindow.UpdateTable();
            this.Close();
        }
 private void ButtonAccept_Click(object sender, RoutedEventArgs e)
 {
     Postgre.ExecuteNonQuery(m.ToQueryActivate());
     MainWindow.UpdateTable();
     this.Close();
 }