Седьмая лабораторная работа
This commit is contained in:
parent
f9f2e0f4e8
commit
aa62dc46fa
@ -14,7 +14,6 @@ namespace projectDoubleDeckerBus.Exceptions
|
||||
public BusNotFoundException(int i) : base($"Не найден объект по позиции { i}") { }
|
||||
public BusNotFoundException() : base() { }
|
||||
public BusNotFoundException(string message) : base(message) { }
|
||||
|
||||
public BusNotFoundException(string message, Exception exception) :
|
||||
base(message, exception)
|
||||
{ }
|
||||
|
@ -52,8 +52,7 @@ namespace projectDoubleDeckerBus
|
||||
/// <param name="collect"></param>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
///
|
||||
|
||||
///
|
||||
public static bool operator +(BusesGenericCollection<T, U> collect, T?
|
||||
obj)
|
||||
{
|
||||
@ -73,13 +72,11 @@ namespace projectDoubleDeckerBus
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
// получение объекта imoveableObj
|
||||
public U? GetU(int pos)
|
||||
{
|
||||
return (U?)_collection[pos]?.GetMoveableObject;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Вывод всего набора объектов
|
||||
/// </summary>
|
||||
|
@ -17,7 +17,6 @@ namespace projectDoubleDeckerBus.Generics
|
||||
public List<string> Keys => _busStorages.Keys.ToList();
|
||||
private readonly int _pictureWidth;
|
||||
private readonly int _pictureHeight;
|
||||
|
||||
private static readonly char _separatorForKeyValue = '|';
|
||||
/// <summary>
|
||||
/// Разделитель для записей коллекции данных в файл
|
||||
@ -55,8 +54,6 @@ namespace projectDoubleDeckerBus.Generics
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SaveData(string filename)
|
||||
{
|
||||
if (File.Exists(filename))
|
||||
|
@ -215,7 +215,7 @@ namespace projectDoubleDeckerBus
|
||||
|
||||
|
||||
|
||||
private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
|
@ -21,7 +21,6 @@ namespace projectDoubleDeckerBus
|
||||
Application.Run(serviceProvider.GetRequiredService<FormBusCollection>());
|
||||
}
|
||||
}
|
||||
|
||||
private static void ConfigureServices(ServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<FormBusCollection>().AddLogging(option =>
|
||||
|
@ -6,7 +6,6 @@ using System.Threading.Tasks;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace projectDoubleDeckerBus.Exceptions
|
||||
|
||||
{
|
||||
[Serializable]
|
||||
internal class StorageOverflowException : ApplicationException
|
||||
|
Loading…
Reference in New Issue
Block a user