private void Rectangle_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (f) { MouseClick?.Invoke(this, e); } f = false; EnterColor?.Invoke(this, new EventArgs()); }
private void Rectangle_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { EnterColor?.Invoke(this, new EventArgs()); f = false; }