예제 #1
0
 private void списокИзделийToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var dialog = new SaveFileDialog {
         Filter = "docx|*.docx"
     })
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             report.SaveKomlectsToWordFile(new ReportBindingModel
             {
                 FileName =
                     dialog.FileName
             });
             MessageBox.Show("Выполнено", "Успех", MessageBoxButtons.OK,
                             MessageBoxIcon.Information);
         }
     }
 }