private void updateVisibility(bool visible) { if (this.InvokeRequired) { updateVisibilityCallBack d = new updateVisibilityCallBack(updateVisibility); this.Invoke(d, new object[] { visible }); } else { this.pictureBox1.Visible = visible; this.pictureBox21.Visible = visible; this.pictureBox22.Visible = visible; } }
private void updateVisibility(bool visible) { if (this.InvokeRequired) { updateVisibilityCallBack d = new updateVisibilityCallBack(updateVisibility); this.Invoke(d, new object[] { visible }); } else { if (!visible) { g.Clear(this.BackColor); } } }