private void PictureBox_MouseEnter(object sender, EventArgs e) { if (Highlighter1.GetHighlightColor((Control)sender) == eHighlightColor.None) { Highlighter1.SetHighlightColor((Control)sender, eHighlightColor.Blue); } }
private void PictureBox_MouseLeave(object sender, EventArgs e) { if (Highlighter1.GetHighlightColor((Control)sender) == eHighlightColor.Blue) { Highlighter1.SetHighlightColor((Control)sender, eHighlightColor.None); // FlowLayoutPanel1.Refresh() } }