Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //The original line
- 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))));
- //My attempt to break it up to make it somewhat readable because what
- e.Graphics.DrawLine(pen2,
- //X location #1
- ((i + 1) * 5) - 2,
- //Y location #1
- this.Bounds.Height -
- if ( (if (i > 1) { (Highest[i] * this.Bounds.Height) * i } else { (Highest[i] * this.Bounds.Height) * 2 }) > this.Bounds.Height) {
- return this.Bounds.Height;
- } else {
- if (i > 1) {
- return (Highest[i] * this.Bounds.Height) * i;
- } else {
- return (Highest[i] * this.Bounds.Height) * 2;
- }
- }
- //I think
- //ow
- ,
- //X location #2
- ((i + 1) * 5) + 1 ,
- //Y location #2 is the same as Y #1 (thank god)
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement