1. Список говнокодов пользователя GavnoCoder111

    Всего: 1

  2. C# / Говнокод #7974

    +125

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    if ((pen == true) || (brush == true))
     {
     mousePath = new System.Drawing.Drawing2D.GraphicsPath();
     myPaths.Add(mousePath);
     }
     else
     if ((rectangle == true) && (e.X > 0) && (e.Y > 0) && (e.X < pictureBox1.Width)
     && (e.Y < pictureBox1.Height))
     {
     if (Border == true)
     {
     PenForBrush.Width = trackBar1.Value;
    if ((e.X >= rectX) && (e.Y >= rectY))
    {
    g.DrawRectangle(PenForBrush, rectX, rectY, e.X - rectX, e.Y - rectY);
    }
    else
    if ((e.X <= rectX) && (e.Y <= rectY))
    {
    Rectangle R = new Rectangle(e.X, e.Y, rectX - e.X, rectY - e.Y);
    g.DrawRectangle(PenForBrush, R);
    }
    else
    if ((e.X <= rectX) && (e.Y >= rectY))
    {
    Rectangle R = new Rectangle(e.X, rectY, rectX - e.X, e.Y - rectY);
    g.DrawRectangle(PenForBrush, R);
    }
    else
    if ((e.X >= rectX) && (e.Y <= rectY))
    {
    Rectangle R = new Rectangle(rectX, e.Y, e.X - rectX, rectY - e.Y);
    g.DrawRectangle(PenForBrush, R);
    }
    }
    else  if (FillBorder == true)
    {
    else
    if ((e.X <= rectX) && (e.Y <= rectY))
    {
    Rectangle R = new Rectangle(e.X + width, e.Y + width,
    rectX - e.X - trackBar1.Value, rectY - e.Y - trackBar1.Value);
    g.FillRectangle(FillBrush, R);
                                        g.DrawRectangle(PenForBrush, e.X, e.Y, rectX - e.X, rectY - e.Y);
                                    }
                                    else
                                        if ((e.X <= rectX) && (e.Y >= rectY))
                                        {
                                            Rectangle R = new Rectangle(e.X + width, rectY + width,
                                                                        rectX - e.X - trackBar1.Value, e.Y - rectY - trackBar1.Value);
                                            g.FillRectangle(FillBrush, R);
                                            g.DrawRectangle(PenForBrush, e.X, rectY, rectX - e.X, e.Y - rectY);
                                        }
                                        else
                                            if ((e.X >= rectX) && (e.Y <= rectY))
                                            {
                                                Rectangle R = new Rectangle(rectX + width, e.Y + width,
                                                                            e.X - rectX - trackBar1.Value, rectY - e.Y - trackBar1.Value);
                                                g.FillRectangle(FillBrush, R);
                                                g.DrawRectangle(PenForBrush, rectX, e.Y, e.X - rectX, rectY - e.Y);
                                            }
                            }
    else               if ((mark == true) && (!IsMarkPaint)
                        && (e.X - distance1 > 0) && (e.Y - distance2 > 0)
                        && (e.X + distance3 < pictureBox1.Width) && (e.Y + distance4 < pictureBox1.Height))
                    {
                        if (Count == 0)
                        {
                            try
                            {
                                Rectangle R = new Rectangle(PreviousMarkPoint.X, PreviousMarkPoint.Y,
                                    MarkRectangle.Width, MarkRectangle.Height);
                                SolidBrush s = new SolidBrush(Color.White);
                                g.FillRectangle(s, R);
    Bitmap temp = new Bitmap(pictureBox1.Image.Width, pictureBox1.Image.Height);
                                temp = (Bitmap)pictureBox1.Image;
                                ImageClone = temp.Clone(MarkRectangle, PixelFormat.Format16bppArgb1555);
                            }
                            catch { }
    if (myImages.Count > 35)
                {
                    myImages.RemoveAt(0);
                    ImageNames.RemoveAt(0);
                }

    Графический редактор

    GavnoCoder111, 25 Сентября 2011

    Комментарии (9)