2014年10月24日 星期五

OOXX嘿嘿嘿

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        int c = 0;
        public Form1()
        {
            InitializeComponent();
        }

       

        private void Form1_Load(object sender, EventArgs e)
        {
            button1.Text = "";
            button2.Text = "";
            button3.Text = "";
            button4.Text = "";
            button5.Text = "";
            button6.Text = "";
            button7.Text = "";
            button8.Text = "";
            button9.Text = "";





        }

        private void button1_Click(object sender, EventArgs e)
        {
            int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button1.Text = "U LOSE ";
            }
            else
            {
                button1.Text = "U GET IT";
            }
          //  button1.Enabled = false;

           
        }

        private void button2_Click(object sender, EventArgs e)
        { int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button2.Text = "U LOSE ";
            }
            else
            {
                button2.Text = "U GET IT";
            }
         //   button2.Enabled = false;

            }

        private void button3_Click(object sender, EventArgs e)
        {
        int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button3.Text = "U LOSE ";
            }
            else
            {
                button3.Text = "U GET IT";
            }
         

        }

       

     

 

        private void button4_Click_1(object sender, EventArgs e)
        {
         int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button4.Text = "U LOSE ";
            }
            else
            {
                button4.Text = "U GET IT";
            }
        //    button4.Enabled = false;

        }

        private void button5_Click(object sender, EventArgs e)
        {
        int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button5.Text = "U LOSE ";
            }
            else
            {
                button5.Text = "U GET IT";
            }
         //   button5.Enabled = false;

        }

        private void button6_Click(object sender, EventArgs e)
        {
int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button6.Text = "U LOSE ";
            }
            else
            {
                button6.Text = "U GET IT";
            }
        //    button6.Enabled = false;


       
        }

        private void button7_Click(object sender, EventArgs e)
        {
         int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button7.Text = "U LOSE ";
            }
            else
            {
                button7.Text = "U GET IT";
            }
      //      button7.Enabled = false;

        }
...........................



        private void button8_Click(object sender, EventArgs e)
        {
         int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button8.Text = "U LOSE ";
            }
            else
            {
                button8.Text = "U GET IT";
            }
     //       button8.Enabled = false;

        }

        private void button9_Click(object sender, EventArgs e)
        {
        int r;
            c = c + 1;
            r = c % 2;
            textBox1.Text = Convert.ToString(c);
            if (r == 0)
            {
                button9.Text = "U LOSE ";
            }
            else
            {
                button9.Text = "U GET IT";
            }
       //     button9.Enabled = false;
        }

    }
       
         

           

        }
    ................................................................

沒有留言:

張貼留言