示例#1
0
        static void Main(string[] args)
        {
            Costumer costumer1 = new Costumer();

            costumer1.Name    = "Faruk";
            costumer1.SurName = "KURT";
            costumer1.Jop     = "Mühendis";
            costumer1.Id      = 1;


            Costumer costumer2 = new Costumer();

            costumer2.Name    = "Osman";
            costumer2.SurName = "KAVA";
            costumer2.Jop     = "Avukat";
            costumer2.Id      = 2;

            Costumer costumer3 = new Costumer();

            costumer3.Name    = "Ayşe";
            costumer3.SurName = "GÜL";
            costumer3.Jop     = "Doktor";
            costumer3.Id      = 3;

            CostumerManager musteriyoneticisi = new CostumerManager();

            musteriyoneticisi.Add(costumer1);
            Console.WriteLine("-----");
            musteriyoneticisi.List(costumer2);
            Console.WriteLine("-----");
            musteriyoneticisi.Delete(costumer3);
        }
示例#2
0
        static void Main(string[] args)
        {
            Costumer costumer2 = new Costumer();

            costumer2.CostumerName     = "Gamze";
            costumer2.CostumerLastName = "Ersoy";
            costumer2.CostumerId       = 1;

            Costumer costumer3 = new Costumer();

            costumer3.CostumerName     = "Samet";
            costumer3.CostumerLastName = "Özdemir";
            costumer3.CostumerId       = 2;


            Costumer costumer4 = new Costumer();

            costumer3.CostumerName     = "Buse";
            costumer3.CostumerLastName = "Ersoy";
            costumer3.CostumerId       = 3;

            Costumer costumer5 = new Costumer();

            costumer5.CostumerName     = "Emrullah";
            costumer5.CostumerLastName = "Özdemir";
            costumer5.CostumerId       = 5;


            CostumerManager costumerManager = new CostumerManager();



            costumerManager.Add(costumer2);
            costumerManager.Delete(costumer3);
            costumerManager.Listele(costumer5);
        }