Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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);
         }
     }
 }