Pibd-13 Kadyshev_M.I. LabWork05 Base #5

Closed
nezui wants to merge 3 commits from LabWork05 into LabWork04
3 changed files with 7 additions and 35 deletions
Showing only changes of commit b8f9419775 - Show all commits

View File

@ -1,16 +0,0 @@
using ProjectAirFighter.Drawning;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using System.Threading.Tasks;
namespace ProjectAirFighter;
public class AdNum<T>
where T : DrawningAirFighter
{
public void Nothing(){
}
}

View File

@ -4,21 +4,6 @@
/// </summary>
public class EntityAirFighter : EntityWarPlane
{
/// <summary>
/// Скорость
/// </summary>
public int Speed { get; private set; }
/// <summary>
/// Вес
/// </summary>
public double Weight { get; private set; }
/// <summary>
/// Основной цвет
/// </summary>
public Color BodyColor { get; private set; }
/// <summary>
/// Дополнительный цвет
/// </summary>

View File

@ -156,10 +156,13 @@ public partial class FormWarPlaneConfig : Form
}
private void labelAdditionalColor_DragEnter(object sender, DragEventArgs e)
{
if (e.Data.GetDataPresent(typeof(Color)))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
if (_warPlane?.EntityWarPlane is EntityAirFighter _airFighter)
{
if (e.Data.GetDataPresent(typeof(Color)))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}
}
private void buttonAdd_Click(object sender, EventArgs e)