private void toolStripMenuItemCopy_Click(object sender, EventArgs e) { var copyForm = new DebtCopyForm(debtDocProperties.DebtType, debtDocProperties.Month, debtDocProperties.Year); if (copyForm.ShowDialog(this) != DialogResult.OK) { return; } DebtDAO.CopyDebtRows( copyForm.DebtPropertiesFrom.DebtType, copyForm.DebtPropertiesFrom.Month, copyForm.DebtPropertiesFrom.Year, copyForm.DebtPropertiesTo.DebtType, copyForm.DebtPropertiesTo.Month, copyForm.DebtPropertiesTo.Year); MessageBox.Show("Копирование строк задолженности успешно завершено.", Text, MessageBoxButtons.OK, MessageBoxIcon.Information); debtDocProperties.SetDebtProperties(copyForm.DebtPropertiesTo.DebtType, copyForm.DebtPropertiesTo.Month, copyForm.DebtPropertiesTo.Year); }