private void btaddag_Click(object sender, RoutedEventArgs e)
        {
            AddAgreement wnd = new AddAgreement();

            wnd.ShowDialog();
            UpdateWND();
        }
        private void btupdag_Click(object sender, RoutedEventArgs e)
        {
            AgreementDto item = dataGridAgreement.SelectedItem as AgreementDto;

            if (item == null)
            {
                MessageBox.Show("Ничего не было выбрано для изменения ╮( ̄ω ̄)╭ ", "Какой коwмар!");
                return;
            }

            AddAgreement wnd = new AddAgreement(item);

            wnd.ShowDialog();
            UpdateWND();
        }