lab4Hard #13

Closed
chtzsch wants to merge 4 commits from lab4Hard into lab3Hard
Showing only changes of commit fb536d2fb9 - Show all commits

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)