Изменил название класса
This commit is contained in:
parent
203daf9a16
commit
5fb2d43e03
@ -15,11 +15,11 @@ namespace AntiAircraftGun
|
|||||||
{
|
{
|
||||||
public partial class FormAntiAirCraftGunCollection : Form
|
public partial class FormAntiAirCraftGunCollection : Form
|
||||||
{
|
{
|
||||||
private readonly ZenitsGenericCollection<BaseDrawingAntiAirCraftGun,DrawingObjectAntiAirCraftGun> _zenits;
|
private readonly AntiAirCraftGunGenericCollection<BaseDrawingAntiAirCraftGun,DrawingObjectAntiAirCraftGun> _zenits;
|
||||||
public FormAntiAirCraftGunCollection()
|
public FormAntiAirCraftGunCollection()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_zenits = new ZenitsGenericCollection<BaseDrawingAntiAirCraftGun,
|
_zenits = new AntiAirCraftGunGenericCollection<BaseDrawingAntiAirCraftGun,
|
||||||
DrawingObjectAntiAirCraftGun>(pictureBoxCollection.Width, pictureBoxCollection.Height);
|
DrawingObjectAntiAirCraftGun>(pictureBoxCollection.Width, pictureBoxCollection.Height);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace AntiAircraftGun.Generics
|
namespace AntiAircraftGun.Generics
|
||||||
{
|
{
|
||||||
internal class ZenitsGenericCollection<T,U>
|
internal class AntiAirCraftGunGenericCollection<T,U>
|
||||||
where T : BaseDrawingAntiAirCraftGun
|
where T : BaseDrawingAntiAirCraftGun
|
||||||
where U : IMoveableObject
|
where U : IMoveableObject
|
||||||
{
|
{
|
||||||
@ -37,7 +37,7 @@ namespace AntiAircraftGun.Generics
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="picWidth"></param>
|
/// <param name="picWidth"></param>
|
||||||
/// <param name="picHeight"></param>
|
/// <param name="picHeight"></param>
|
||||||
public ZenitsGenericCollection(int picWidth, int picHeight)
|
public AntiAirCraftGunGenericCollection(int picWidth, int picHeight)
|
||||||
{
|
{
|
||||||
int width = picWidth / _placeSizeWidth;
|
int width = picWidth / _placeSizeWidth;
|
||||||
int height = picHeight / _placeSizeHeight;
|
int height = picHeight / _placeSizeHeight;
|
||||||
@ -51,7 +51,7 @@ namespace AntiAircraftGun.Generics
|
|||||||
/// <param name="collect"></param>
|
/// <param name="collect"></param>
|
||||||
/// <param name="obj"></param>
|
/// <param name="obj"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static bool operator +(ZenitsGenericCollection<T, U> collect, T?
|
public static bool operator +(AntiAirCraftGunGenericCollection<T, U> collect, T?
|
||||||
obj)
|
obj)
|
||||||
{
|
{
|
||||||
if (obj == null)
|
if (obj == null)
|
||||||
@ -67,7 +67,7 @@ namespace AntiAircraftGun.Generics
|
|||||||
/// <param name="collect"></param>
|
/// <param name="collect"></param>
|
||||||
/// <param name="pos"></param>
|
/// <param name="pos"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static T? operator -(ZenitsGenericCollection<T, U> collect, int
|
public static T? operator -(AntiAirCraftGunGenericCollection<T, U> collect, int
|
||||||
pos)
|
pos)
|
||||||
{
|
{
|
||||||
T? obj = collect._collection.Get(pos);
|
T? obj = collect._collection.Get(pos);
|
Loading…
Reference in New Issue
Block a user