title: How to hide System.Drawing line with condition
body: <p>How to hide System.Drawing line with condition:  </p>
  
  <pre><code>    System.Drawing.Pen myPen;            
      myPen = new System.Drawing.Pen(System.Drawing.Color.White);           
      System.Drawing.Graphics formGraphics = this.CreateGraphics();
  
      formGraphics.DrawLine(myPen, 108, 272, 153, 160);  
  
      myPen.Dispose();
      formGraphics.Dispose();
  </code></pre>
  
  <p>I want to hide the drawn line <code>formGraphics.DrawLine(myPen, 108, 272, 153, 160);</code> with condition <code>if (x &gt; 1) {} else if (x = 1) {}</code> display it again</p>