1. C# / Говнокод #25795

    −1

    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
    class Label : System.Windows.Forms.Label {
            public Label ( string s , int x , int y , Form parent ) {
                this.Location = new Point ( x , y ) ;
                this.Text = s ;
                this.AutoSize = true ;
                this.Font = new Font ( SystemFonts.CaptionFont , FontStyle.Bold ) ;
                parent.Controls.Add ( this ) ;
            }
        }
        class Button : System.Windows.Forms.Button {
            public Button ( string s , int x , int y ,  EventHandler f , Form parent ) {
                this.Location = new Point ( x , y ) ;
                this.Text = s ;
                this.Font = new Font ( SystemFonts.CaptionFont , FontStyle.Bold ) ;
                this.Click += f ;
                parent.Controls.Add ( this ) ;
            }
        }
    
        static Form form = new Form() ;
        static Button[,] a = new Button [ 4 , 4 ] ;
        static Random rnd = new Random() ;
        static Timer timer = new Timer() ;
        static Label time = new Label ( "0" , width + cellspacing * 3 , 4 * ( width + cellspacing ) + cellspacing * 2 , form ) ;
        static Label nclicks = new Label ( "0" , 3 * width + cellspacing * 5 , 4 * ( width + cellspacing ) + cellspacing * 2 , form ) ;

    Нашел архив своего старого говна :)

    Запостил: Pretty_Young_Thing, 03 Сентября 2019

    Комментарии (11) RSS

    Добавить комментарий