Beispiel #1
0
 private void btn_dress_Click(object sender, EventArgs e)
 {
     if (cb_dress.Text == "Home")
     {
         HomeDirector dir = new HomeDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Work")
     {
         WorkDirector dir = new WorkDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Waitress")
     {
         WaitressDirector dir = new WaitressDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "BatGirl")
     {
         BatGirlDirector dir = new BatGirlDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Protect")
     {
         ProtectDirector dir = new ProtectDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Party")
     {
         PartyDirector dir = new PartyDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Sex")
     {
         SexDirector dir = new SexDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Bride")
     {
         BrideDirectory dir = new BrideDirectory(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Playgirl")
     {
         PlaygirlDirector dir = new PlaygirlDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
     if (cb_dress.Text == "Merry Christmas")
     {
         MerryChristmasDirector dir = new MerryChristmasDirector(girl);
         dir.Construct();
         pictureBox1.Image = girl.GetProduct().Picture;
     }
 }
Beispiel #2
0
        private void btn_dress_Click(object sender, EventArgs e)
        {
            if (cb_dress.Text == "Home")
            {

                HomeDirector dir = new HomeDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Work")
            {
                WorkDirector dir = new WorkDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Waitress")
            {
                WaitressDirector dir = new WaitressDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "BatGirl")
            {
                BatGirlDirector dir = new BatGirlDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Protect")
            {
                ProtectDirector dir = new ProtectDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Party")
            {
                PartyDirector dir = new PartyDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Sex")
            {
                SexDirector dir = new SexDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Bride")
            {
                BrideDirectory dir = new BrideDirectory(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Playgirl")
            {
                PlaygirlDirector dir = new PlaygirlDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
            if (cb_dress.Text == "Merry Christmas")
            {
                MerryChristmasDirector dir = new MerryChristmasDirector(girl);
                dir.Construct();
                pictureBox1.Image = girl.GetProduct().Picture;
            }
        }