Готовая пятая лабораторная работа.
This commit is contained in:
parent
dd63332041
commit
71311d9505
@ -16,7 +16,7 @@ namespace AirplaneWithRadar
|
||||
public partial class FormAirplaneConfig : Form
|
||||
{
|
||||
/// <summary>
|
||||
/// Переменная-выбранная машина
|
||||
/// Переменная-выбранный самолет
|
||||
/// </summary>
|
||||
DrawingAirplane _airplane = null;
|
||||
/// <summary>
|
||||
@ -40,7 +40,6 @@ namespace AirplaneWithRadar
|
||||
// TODO buttonCancel.Click with lambda
|
||||
buttonCancel.Click += (object sender, EventArgs e) => Close();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Отрисовать самолет
|
||||
/// </summary>
|
||||
@ -143,7 +142,6 @@ namespace AirplaneWithRadar
|
||||
/// <param name="e"></param>
|
||||
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
// TODO Call method from object _car and set color
|
||||
Color BodyColor = (Color)e.Data.GetData(typeof(Color));
|
||||
_airplane.SetColor(BodyColor);
|
||||
DrawAirplane();
|
||||
@ -155,7 +153,6 @@ namespace AirplaneWithRadar
|
||||
/// <param name="e"></param>
|
||||
private void LabelDopColor_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
// TODO Call method from object _car if _car is DrawningSportCar and set dop color
|
||||
Color ModifColor = (Color)e.Data.GetData(typeof(Color));
|
||||
if (_airplane is DrawingAirplaneWithRadar airplaneWithRadar)
|
||||
{
|
||||
@ -164,13 +161,10 @@ namespace AirplaneWithRadar
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Добавление машины
|
||||
/// Добавление самолета
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
||||
|
||||
|
||||
private void ButtonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
EventAddAirplane?.Invoke(_airplane);
|
||||
|
@ -48,7 +48,11 @@ namespace AirplaneWithRadar
|
||||
SetData();
|
||||
Draw();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Ïåðåìåùåíèå
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void ButtonMove_Click(object sender, EventArgs e)
|
||||
{
|
||||
string name = ((Button)sender)?.Name ?? string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user