This commit is contained in:
Milana Ievlewa 2024-05-17 00:59:46 +04:00
parent 5bb0091866
commit fb536d2fb9

View File

@ -68,10 +68,11 @@ namespace PrecastConcretePlantView
}
private void МагазиныToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormShops));
if (service is FormShops form)
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
if (dialog.ShowDialog() == DialogResult.OK)
{
form.ShowDialog();
_reportLogic.SaveShopsToWordFile(new ReportBindingModel { FileName = dialog.FileName });
MessageBox.Show("Выполнено", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
private void ПополнениеМагазинаToolStripMenuItem_Click(object sender, EventArgs e)