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

            costumer1.Adi    = "Mahmut";
            costumer1.Soyadi = "Ekin";
            costumer1.Id     = 111;
            costumer1.Yasi   = 29;

            Costumer costumer2 = new Costumer();

            costumer2.Adi    = "Şeref";
            costumer2.Soyadi = "Asil";
            costumer2.Id     = 222;
            costumer2.Yasi   = 48;

            Costumer[] costumers = new Costumer[] { costumer1, costumer2 };

            foreach (var costumer in costumers)
            {
                Console.WriteLine(costumer.Adi);
                Console.WriteLine(costumer.Soyadi);
                Console.WriteLine(costumer.Yasi);
            }
            Console.WriteLine("---------metotlar----------");

            CostumerManager costumerManager = new CostumerManager();

            costumerManager.Listele(costumers);
            costumerManager.Ekle(costumer1);
            costumerManager.Sil(costumer2);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Costumer costumer1 = new Costumer();

            costumer1.Name     = "Ali";
            costumer1.Lastname = "Kurban";
            costumer1.Id       = 12345;


            Costumer costumer2 = new Costumer();

            costumer2.Name     = "Furkan";
            costumer2.Lastname = "Kurban";
            costumer2.Id       = 67890;

            CostumerManager costumermanager = new CostumerManager();

            costumermanager.AddCostumer(costumer1);
            costumermanager.MakeLists(costumer1);
            costumermanager.DelCostumer(costumer1);

            Console.WriteLine("________________________________________");
            costumermanager.AddCostumer(costumer2);
            costumermanager.MakeLists(costumer2);
            costumermanager.DelCostumer(costumer2);
        }
예제 #3
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);
        }
예제 #4
0
        static void Main(string[] args)
        {
            Costumer costumer1 = new Costumer();

            costumer1.Id          = 1;
            costumer1.Name        = "Gamze";
            costumer1.Surname     = "Aydın";
            costumer1.PhoneNumber = 74738539753;
            costumer1.Adress      = "Ankara";

            Costumer costumer2 = new Costumer();

            costumer2.Id          = 2;
            costumer2.Name        = "Cemre";
            costumer2.Surname     = "Aydın";
            costumer2.PhoneNumber = 74732443534;
            costumer2.Adress      = "Ankara";

            Costumer costumer3 = new Costumer();

            costumer3.Id          = 3;
            costumer3.Name        = "Ecrin";
            costumer3.Surname     = "Aydın";
            costumer3.PhoneNumber = 36543639753;
            costumer3.Adress      = "Ankara";

            Costumer[] costumers = new Costumer[]
            {
                costumer1, costumer2, costumer3
            };
            CostumerManager costumerManager = new CostumerManager();

            costumerManager.AddCostumer(costumer1);
            costumerManager.AddCostumer(costumer2);
            costumerManager.AddCostumer(costumer3);
            costumerManager.ListCostumer(costumers);
            costumerManager.DeleteCostumer(costumer1);
            costumerManager.DeleteCostumer(costumer2);
            costumerManager.DeleteCostumer(costumer3);
        }
예제 #5
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);
        }