hdf
This commit is contained in:
parent
3fd45b6f3b
commit
2bad6f12a1
@ -62,7 +62,6 @@ namespace ProjectBoat.CollectionGenericObjects
|
|||||||
_collection[position] = obj;
|
_collection[position] = obj;
|
||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
int index;
|
|
||||||
|
|
||||||
for (index = position + 1; index < _collection.Length; ++index)
|
for (index = position + 1; index < _collection.Length; ++index)
|
||||||
{
|
{
|
||||||
@ -83,15 +82,6 @@ namespace ProjectBoat.CollectionGenericObjects
|
|||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
public T Remove(int position)
|
|
||||||
{
|
|
||||||
// TODO проверка позиции
|
|
||||||
// TODO удаление объекта из массива, присвоив элементу массива значение null
|
|
||||||
if (position >= _collection.Length || position < 0)
|
|
||||||
{ return null; }
|
|
||||||
T drawningBoat = _collection[position];
|
|
||||||
_collection[position] = null;
|
|
||||||
return drawningBoat;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
groupBoxTools = new GroupBox();
|
groupBoxTools = new GroupBox();
|
||||||
maskedTextBoxPosision = new MaskedTextBox();
|
maskedTextBoxPosision = new MaskedTextBox();
|
||||||
buttonRefresh = new Button();
|
buttonRefresh = new Button();
|
||||||
buttonGetToTest = new Button();
|
|
||||||
ButtonRemoveBoat = new Button();
|
ButtonRemoveBoat = new Button();
|
||||||
ButtonAddMBoat = new Button();
|
ButtonAddMBoat = new Button();
|
||||||
ButtonAddBoat = new Button();
|
ButtonAddBoat = new Button();
|
||||||
@ -78,17 +77,6 @@
|
|||||||
buttonRefresh.UseVisualStyleBackColor = true;
|
buttonRefresh.UseVisualStyleBackColor = true;
|
||||||
buttonRefresh.Click += ButtonRefresh_Click;
|
buttonRefresh.Click += ButtonRefresh_Click;
|
||||||
//
|
//
|
||||||
// buttonGetToTest
|
|
||||||
//
|
|
||||||
buttonGetToTest.Anchor = AnchorStyles.Right;
|
|
||||||
buttonGetToTest.Location = new Point(20, 366);
|
|
||||||
buttonGetToTest.Name = "buttonGetToTest";
|
|
||||||
buttonGetToTest.Size = new Size(186, 40);
|
|
||||||
buttonGetToTest.TabIndex = 4;
|
|
||||||
buttonGetToTest.Text = "передать на тесты";
|
|
||||||
buttonGetToTest.UseVisualStyleBackColor = true;
|
|
||||||
buttonGetToTest.Click += ButtonGetToTest_Click;
|
|
||||||
//
|
|
||||||
// ButtonRemoveBoat
|
// ButtonRemoveBoat
|
||||||
//
|
//
|
||||||
ButtonRemoveBoat.Anchor = AnchorStyles.Right;
|
ButtonRemoveBoat.Anchor = AnchorStyles.Right;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user