Сдана лаб7, требуется чистка кода

This commit is contained in:
Данила Мочалов 2022-11-08 16:15:06 +04:00
parent 47dfc705d8
commit 3f65961713
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ namespace Locomotive
{ {
MessageBox.Show("Object added"); MessageBox.Show("Object added");
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet(); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
Log.Information($"Locomotive {locomotive} added"); Log.Information($"Object {locomotive} added");
} }
else else

View File

@ -14,7 +14,7 @@ namespace Locomotive
// see https://aka.ms/applicationconfiguration. // see https://aka.ms/applicationconfiguration.
Log.Logger = new LoggerConfiguration().WriteTo.File(new Serilog.Formatting.Compact.CompactJsonFormatter(), "C:\\secondCourse\\OOP\\log.clef").CreateLogger(); Log.Logger = new LoggerConfiguration().WriteTo.File(new Serilog.Formatting.Compact.CompactJsonFormatter(), "C:\\secondCourse\\OOP\\ProjectLomotive\\Locomotive\\log.clef").CreateLogger();
ApplicationConfiguration.Initialize(); ApplicationConfiguration.Initialize();
Application.Run(new FormMapWithSetLocomotives()); Application.Run(new FormMapWithSetLocomotives());
} }