Advertisement
Guest User

aaaaaaaaaaaaAAAAAAAAAHHHHHHHHHHHHH

a guest
Sep 23rd, 2013
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.18 KB | None | 0 0
  1. //The original line
  2. e.Graphics.DrawLine(pen2, ((i + 1) * 5) - 2, this.Bounds.Height - ((i > 1 ? ((Highest[i] * this.Bounds.Height) * i) : ((Highest[i] * this.Bounds.Height) * 2)) > this.Bounds.Height ? this.Bounds.Height : (i > 1 ? ((Highest[i] * this.Bounds.Height) * i) : ((Highest[i] * this.Bounds.Height) * 2))), ((i + 1) * 5) + 1, this.Bounds.Height - ((i > 1 ? ((Highest[i] * this.Bounds.Height) * i) : ((Highest[i] * this.Bounds.Height) * 2)) > this.Bounds.Height ? this.Bounds.Height : (i > 1 ? ((Highest[i] * this.Bounds.Height) * i) : ((Highest[i] * this.Bounds.Height) * 2))));
  3.  
  4. //My attempt to break it up to make it somewhat readable because what
  5. e.Graphics.DrawLine(pen2,
  6. //X location #1
  7. ((i + 1) * 5) - 2,
  8.  
  9. //Y location #1
  10. this.Bounds.Height -
  11. if ( (if (i > 1) { (Highest[i] * this.Bounds.Height) * i } else { (Highest[i] * this.Bounds.Height) * 2 }) > this.Bounds.Height) {
  12.     return this.Bounds.Height;
  13. } else {
  14.     if (i > 1) {
  15.         return (Highest[i] * this.Bounds.Height) * i;
  16.     } else {
  17.         return (Highest[i] * this.Bounds.Height) * 2;
  18.     }
  19. }
  20. //I think
  21. //ow
  22. ,
  23. //X location #2
  24. ((i + 1) * 5) + 1 ,
  25. //Y location #2 is the same as Y #1 (thank god)
  26. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement