Финальные финальные правки.
This commit is contained in:
parent
bc439e0a87
commit
5666738dbe
@ -114,12 +114,14 @@ namespace Airbus
|
|||||||
//принимаем основной цвет
|
//принимаем основной цвет
|
||||||
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
|
//проверка на пустоту объекта
|
||||||
if (_plane != null)
|
if (_plane != null)
|
||||||
{
|
{
|
||||||
if (e.Data.GetDataPresent(typeof(Color)))
|
if (e.Data.GetDataPresent(typeof(Color)))
|
||||||
{
|
{
|
||||||
_plane.Airbus.CorpusColor = (Color)e.Data.GetData(typeof(Color));
|
_plane.Airbus.CorpusColor = (Color)e.Data.GetData(typeof(Color));
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawPlane();
|
DrawPlane();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -140,6 +142,7 @@ namespace Airbus
|
|||||||
//принимаем дополнительный цвет
|
//принимаем дополнительный цвет
|
||||||
private void LabelAddColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelAddColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
|
//проверка на пустоту объекта и правильную сущноть
|
||||||
if (_plane != null && _plane is DrawningSuperAirbus airbus)
|
if (_plane != null && _plane is DrawningSuperAirbus airbus)
|
||||||
{
|
{
|
||||||
if (e.Data.GetDataPresent(typeof(Color)))
|
if (e.Data.GetDataPresent(typeof(Color)))
|
||||||
@ -149,6 +152,7 @@ namespace Airbus
|
|||||||
entityAirbus.AddColor = (Color)e.Data.GetData(typeof(Color));
|
entityAirbus.AddColor = (Color)e.Data.GetData(typeof(Color));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawPlane();
|
DrawPlane();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user