FormConfig fixed
This commit is contained in:
parent
eb32a4c319
commit
db90912206
@ -37,5 +37,9 @@ namespace Boats
|
|||||||
Bobbers = bobbers;
|
Bobbers = bobbers;
|
||||||
Sail = sail;
|
Sail = sail;
|
||||||
}
|
}
|
||||||
|
public void SetDopColor(Color color)
|
||||||
|
{
|
||||||
|
DopColor = color;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,10 +147,9 @@ namespace Boats
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelBaseColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
labelBaseColor.BackColor = (Color)e.Data.GetData(typeof(Color).ToString());
|
|
||||||
if (_boat == null)
|
if (_boat == null)
|
||||||
return;
|
return;
|
||||||
_boat.Boat.BodyColor = labelBaseColor.BackColor;
|
_boat.Boat.BodyColor = (Color)e.Data.GetData(typeof(Color).ToString());
|
||||||
DrawBoat();
|
DrawBoat();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -176,10 +175,9 @@ namespace Boats
|
|||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
private void LabelDopColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelDopColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
labelDopColor.BackColor = (Color)e.Data.GetData(typeof(Color).ToString());
|
|
||||||
if (_boat == null || _boat is not DrawingCatamaran)
|
if (_boat == null || _boat is not DrawingCatamaran)
|
||||||
return;
|
return;
|
||||||
(_boat.Boat as EntityCatamaran).DopColor = labelDopColor.BackColor;
|
(_boat.Boat as EntityCatamaran).SetDopColor((Color)e.Data.GetData(typeof(Color).ToString()));
|
||||||
DrawBoat();
|
DrawBoat();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user