コード例 #1
0
ファイル: RedHead.cs プロジェクト: orlandoxds/DigiDuck
        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;
        }
コード例 #2
0
ファイル: Mallard.cs プロジェクト: orlandoxds/DigiDuck
        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);
        }