예제 #1
0
        public string infoduck()
        {
            InfoDuck type;
            Ivolar   ivolar;

            ivolar = new Flyaway();
            string Nombre = "Mallard";
            Swim   s      = new Swim();
            string Nada   = s.S();

            return(Nombre);
        }
예제 #2
0
        public void TypeDuck(Label a, Label b, Label c, PictureBox pic)
        {
            IQuack quack;
            Ivolar ivolar;

            quack  = new Quack();
            ivolar = new Flyaway();
            Swim s = new Swim();

            a.Text = quack.TypeQuack();
            b.Text = ivolar.Comportamiento();
            c.Text = s.S();
            quack.Typesound();
            pic.Image = Properties.Resources.redhead;
        }
예제 #3
0
        public void TypeDuck(Label a, Label b, Label c, PictureBox pic)
        {
            Ivolar ivolar;
            IQuack quack;
            Swim   s = new Swim();

            ivolar = new Flyaway();
            quack  = new Quack();
            a.Text = ivolar.Comportamiento();
            b.Text = quack.TypeQuack();
            c.Text = s.S();
            quack.Typesound();
            PMallard d = new PMallard();

            d.p(pic);
        }