private void pictureBoxRelay_MouseClick(object sender, MouseEventArgs e) { if (tripBounds.Contains(e.Location)) { this.closed = false; this.UpdateValues(); } else if (closeBounds.Contains(e.Location)) { this.closed = true; this.UpdateValues(); } }