Example #1
0
        static void Main(string[] args)
        {
            SchoolGirl schoolGirl = new SchoolGirl();

            schoolGirl.Name = "girl";
            Proxy proxy = new Proxy(schoolGirl);

            proxy.GiveChocolate();
            proxy.GiveDolles();
            proxy.GiveFlowers();
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            SchoolGirl jiaojiao = new SchoolGirl();

            jiaojiao.Name = "杨阳";

            Proxy daili = new Proxy(jiaojiao);

            daili.GiveDolls();
            daili.GiveChocolate();

            daili.GiveFlowers();
        }
        static void Main(string[] args)
        {
            //Proxy proxy = new Proxy();
            //proxy.Request();

            //Console.Read();

            SchoolGirl along = new SchoolGirl();

            along.Name = "阿龍";

            Proxy daili = new Proxy(along);

            daili.GiveDolls();
            daili.GiveFlowers();
            daili.GiveChocolate();

            Console.Read();
        }
Example #4
0
 public Proxy(SchoolGirl gril)
 {
     this._pursuit = new Pursuit(gril);
 }
Example #5
0
 public Proxy(SchoolGirl schoolGirl)
 {
     pursuit = new Pursuit(schoolGirl);
 }
Example #6
0
 public Pursuit(SchoolGirl schoolGirl)
 {
     this._schoolGirl = schoolGirl;
 }
Example #7
0
 public Proxy(SchoolGirl mm)
 {
     gg = new Pursuit(mm);
 }
Example #8
0
 public Pursuit(SchoolGirl mm)
 {
     this.mm = mm;
 }