From 3873ce4e957d5b51fd7f6986316c82c8a4a2f5cf Mon Sep 17 00:00:00 2001 From: bekodeg Date: Sun, 24 Nov 2024 13:30:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BE=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cop.Borovkov.Var3/Lab3/Forms/MainForm.cs | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Cop.Borovkov.Var3/Lab3/Forms/MainForm.cs b/Cop.Borovkov.Var3/Lab3/Forms/MainForm.cs index 5e388a6..4b5049f 100644 --- a/Cop.Borovkov.Var3/Lab3/Forms/MainForm.cs +++ b/Cop.Borovkov.Var3/Lab3/Forms/MainForm.cs @@ -115,10 +115,15 @@ namespace Lab3.Forms Title = "Сессии", Tables = [tables] }); + + _ = MessageBox.Show("Простой документ сформирован", + "Успешный результат", + MessageBoxButtons.OK, + MessageBoxIcon.Information); } catch (Exception ex) { - MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); + _ = MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } } @@ -152,10 +157,15 @@ namespace Lab3.Forms }], Values = await _studentRepository.GetAsync() }); + + _ = MessageBox.Show("Документ с таблицей сформирован", + "Успешный результат", + MessageBoxButtons.OK, + MessageBoxIcon.Information); } catch (Exception ex) { - MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); + _ = MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } } @@ -185,16 +195,21 @@ namespace Lab3.Forms new( saveFileDialog.FileName, "Поступления", - "Диограмма", + "Диаграмма", EnumAreaLegend.Bottom, data ) ); + + _ = MessageBox.Show("Документ с диаграммой сформирован", + "Успешный результат", + MessageBoxButtons.OK, + MessageBoxIcon.Information); } catch (Exception ex) { - MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); + _ = MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }