Items locked for movement have a light circle drawn around them so that it is a little more obvious that there is something different about them.

This commit is contained in:
Tim Young 2018-03-02 11:03:03 -06:00
parent 56b680e057
commit cd0b1c4bdc

View File

@ -1116,6 +1116,15 @@ namespace EduNetworkBuilder
if (!isInvisible)
{
if (IsLockedInLocation()) //We darken the area around it slightly to show it is locked
{
Color darken = Color.Black;
Brush brush = new SolidBrush(Color.FromArgb(32, darken.R, darken.G, darken.B));
Pen DrawPen = new Pen(brush, 2);
Graphics.FromImage(BaseImage).DrawEllipse(DrawPen, Location);
Network myNet = NB.GetNetwork();
myNet.Invalidate(Location);
}
if (BackgroundColor != Color.Empty)
{
Brush brush = new SolidBrush(Color.FromArgb(128, BackgroundColor.R, BackgroundColor.G, BackgroundColor.B));