а
This commit is contained in:
parent
5bb0091866
commit
fb536d2fb9
@ -68,10 +68,11 @@ namespace PrecastConcretePlantView
|
|||||||
}
|
}
|
||||||
private void МагазиныToolStripMenuItem_Click(object sender, EventArgs e)
|
private void МагазиныToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var service = Program.ServiceProvider?.GetService(typeof(FormShops));
|
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
|
||||||
if (service is FormShops form)
|
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)
|
private void ПополнениеМагазинаToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user