7ая лаба как будто работает

This commit is contained in:
bulatova_karina 2024-05-18 17:15:47 +04:00
parent 160a66c8b8
commit 2bd7d233f9
4 changed files with 6 additions and 2 deletions

View File

@ -23,6 +23,8 @@ builder.Services.AddTransient<IClientLogic, ClientLogic>();
builder.Services.AddTransient<IComputerLogic, ComputerLogic>();
builder.Services.AddTransient<IMessageInfoLogic, MessageInfoLogic>();
builder.Services.AddSingleton<AbstractMailWorker, MailKitWorker>();
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();

View File

@ -51,6 +51,7 @@
this.Name = "FormMails";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Письма";
this.Load += new System.EventHandler(this.FormMails_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
this.ResumeLayout(false);

View File

@ -44,6 +44,7 @@ namespace ComputersShopView
dataGridView.Columns["ComputerId"].Visible = false;
dataGridView.Columns["ComputerName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
dataGridView.Columns["ClientId"].Visible = false;
dataGridView.Columns["ClientEmail"].Visible = false;
dataGridView.Columns["ClientFIO"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
dataGridView.Columns["ImplementerId"].Visible = false;
dataGridView.Columns["ImplementerFIO"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;

View File

@ -61,12 +61,12 @@ namespace ComputersShopView
{
FileName = dialog.FileName
});
_logger.LogInformation("Saving list of ice creams with components");
_logger.LogInformation("Saving list of computers with components");
MessageBox.Show("Выполнено", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
_logger.LogError(ex, "Saving list of ice creams with components error");
_logger.LogError(ex, "Saving list of computers with components error");
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}