示例#1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Goose goose = new Goose();

            goose.Name = "gary";
            goose.Age  = "probabley like 2 or something";
            goose.Atk  = "9876543213456";
            goose.Honk();
            goose.Attack();
        }
示例#2
0
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            string dogName = DogName.Text;
            Dog    dog     = new Dog();

            dog.Name = dogName;
            dog.SayName();

            Goose goose = new Goose();

            goose.Name         = "Honquefreid";
            goose.Age          = 69;
            goose.AttackDamage = 8675309;
        }
示例#3
0
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            //string dogName = DogName.Text;
            //Dog dog = new Dog();
            //dog.Name = dogName;
            //dog.SayName();

            Goose goose = new Goose();

            goose.Name         = "Daddy";
            goose.Age          = 9001;
            goose.AttackDamage = 99999999;

            goose.Honk();
            goose.AQuack();
        }
示例#4
0
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            /* string dogName = DogName.Text;
             * Dog dog = new Dog();
             * dog.Name = dogName;
             * dog.SayName(); */

            Goose goose = new Goose();

            goose.Name         = "GooseName";
            goose.Age          = 9001;
            goose.attackDamage = 999999999;

            goose.Honk();
            goose.Aquack();
        }