Сдана лаб7, требуется чистка кода
This commit is contained in:
parent
47dfc705d8
commit
3f65961713
@ -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
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user