фикс
This commit is contained in:
parent
52bae3ef75
commit
e7fc65842a
@ -116,7 +116,7 @@
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void LabelBaseColor_DragEnter(object sender, DragEventArgs e)
|
private void LabelBaseColor_DragEnter(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Data.GetDataPresent(typeof(Color)))
|
if (e.Data.GetDataPresent(typeof(Color)) && _warplane != null)
|
||||||
{
|
{
|
||||||
e.Effect = DragDropEffects.Copy;
|
e.Effect = DragDropEffects.Copy;
|
||||||
}
|
}
|
||||||
@ -164,7 +164,7 @@
|
|||||||
|
|
||||||
private void labelDopColor_DragEnter(object sender, DragEventArgs e)
|
private void labelDopColor_DragEnter(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
if (e.Data.GetDataPresent(typeof(Color)))
|
if (_warplane != null && _warplane is DrawningFighter && e.Data.GetDataPresent(typeof(Color)))
|
||||||
{
|
{
|
||||||
e.Effect = DragDropEffects.Copy;
|
e.Effect = DragDropEffects.Copy;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user