예제 #1
0
        static void Main(string[] args)
        {
            Kisi Kisi = new Kisi {
                ID = 1, Ad = "Ahmet"
            };

            ReceiverKisi rk1 = new ReceiverKisi(Kisi);

            CommandKisi ckAdd = new ConcreteCommandKisiEkle(rk1);
            CommandKisi ckSil = new ConcreteCommandKisiSil(rk1);

            InvokerKisi ik = new InvokerKisi();

            ik.CommandKisiList.Add(ckAdd);
            ik.CommandKisiList.Add(ckSil);

            ik.ExecuteAll();

            Console.ReadKey();
        }
예제 #2
0
 public ConcreteCommandKisiSil(ReceiverKisi receiverKisi)
     : base(receiverKisi)
 {
 }
예제 #3
0
 public CommandKisi(ReceiverKisi receiverKisi)
 {
     this._receiverKisi = receiverKisi;
 }