Ejemplo n.º 1
0
    void Start()
    {
        InputManager.GetInstance().SetActive(true);
        //EventCenter.GetInstance().AddEventListener<KeyCode>("KeyDown", CheckInputUp);
        //EventCenter.GetInstance().AddEventListener<KeyCode>("KeyUp", CheckInputDown);

        TDD rr = new TDD(InputTest.tdd);
    }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            label6.Text = string.Empty;

            label7.Text = string.Empty;

            TDD tdd = new TDD();

            int[] res = tdd.Work(Convert.ToInt32(textBox1.Text),
                                 Convert.ToInt32(textBox2.Text),
                                 Convert.ToInt32(textBox3.Text));

            if (res != null)
            {
                label6.Text = res[0].ToString();

                label7.Text = res[1].ToString();
            }

            else
            {
                MessageBox.Show("Error");
            }
        }