Beispiel #1
0
        static void Main(string[] args)
        {
            Musteri Eren = new Musteri();

            Eren.Id    = 1;
            Eren.Ad    = "Eren";
            Eren.Sehir = "Kastamonu";

            Musteri Berk = new Musteri();

            Berk.Id    = 2;
            Berk.Ad    = "Berk";
            Berk.Sehir = "Ordu";

            Musteri[] musteriler = new Musteri[] { Eren, Berk };

            MusteriManager musteriManager = new MusteriManager();

            musteriManager.MusteriEkle(Berk);
            musteriManager.MusteriEkle(Eren);
            Console.WriteLine("**************************");
            musteriManager.MusteriSil(Berk);
            Console.WriteLine("**************************");
            musteriManager.MusteriListele(musteriler);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.Id      = 1;
            musteri1.isim    = "kadir";
            musteri1.soyisim = "kara";

            Musteri musteri2 = new Musteri();

            musteri2.Id      = 2;
            musteri2.isim    = "sezer";
            musteri2.soyisim = "kara";

            Musteri[] musteriler = new Musteri[] { musteri1, musteri2 };


            MusteriManager musteriManager = new MusteriManager();

            musteriManager.MusteriListele(musteriler);
            musteriManager.MusteriEkle(new Musteri {
                Id = 3, isim = "turker", soyisim = "can"
            });
            musteriManager.MusteriSil(musteri1);
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.MusteriId = 1;
            musteri1.MusteriNo = "1234567890";
            musteri1.Adi       = "Hazel";
            musteri1.Soyadi    = "Türk";

            Musteri musteri2 = new Musteri();

            musteri2.MusteriId = 2;
            musteri2.MusteriNo = "1456787654";
            musteri2.Adi       = "Beyza";
            musteri2.Soyadi    = "Türk";

            Musteri[] musteriler = new Musteri[] { musteri1, musteri2 };

            MusteriManager musteriManager = new MusteriManager();

            Console.WriteLine("-----------Müşteriler--------------");
            musteriManager.MusteriListele(musteriler);
            Console.WriteLine("-----------------------------------");
            Musteri musteri3 = new Musteri();

            musteri3.MusteriId = 3;
            musteri3.MusteriNo = "123367890";
            musteri3.Adi       = "Ela";
            musteri3.Soyadi    = "Gün";

            musteriManager.MusteriEkle(musteri3);
            Console.WriteLine("-----------------------------------");
            musteriManager.MusteriSil(musteri2);
        }
        static void Main(string[] args)
        {
            MusteriManager musteriManager = new MusteriManager();

            musteriManager.MusteriEkle();
            musteriManager.MusteriListele();
            musteriManager.MusteriSil();
        }
Beispiel #5
0
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.Name     = "Kubra";
            musteri1.Lastname = "ERTUNC";
            musteri1.Id       = 1;
            musteri1.TcNo     = "12345678912";

            Musteri musteri2 = new Musteri();

            musteri2.Name     = "Aylin";
            musteri2.Lastname = "Ozturk";
            musteri2.Id       = 2;
            musteri2.TcNo     = "12345678900";

            Musteri musteri3 = new Musteri();

            musteri3.Name     = "Ali";
            musteri3.Lastname = "Can";
            musteri3.Id       = 3;
            musteri3.TcNo     = "12345678999";

            Console.WriteLine("-------------------Musteri Ekleme---------------------");
            MusteriManager musteriManager = new MusteriManager();

            musteriManager.MusteriEkle(musteri1);
            musteriManager.MusteriEkle(musteri2);
            musteriManager.MusteriEkle(musteri3);


            Console.WriteLine("-------------------Musteri Listeleme---------------------");
            Musteri[] musteris = new Musteri[] { musteri1, musteri2, musteri3 };
            musteriManager.MusteriListele(musteris);


            Console.WriteLine("---------------------Musteri Silme-----------------------");
            musteriManager.MusteriSil(musteri1);
            musteriManager.MusteriSil(musteri2);
            musteriManager.MusteriSil(musteri3);
        }
Beispiel #6
0
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.Id         = 00001;
            musteri1.musteriAdi = "Alper Düztaş";
            musteri1.tcNo       = "14552554441";
            musteri1.dogumYili  = "08.04.1992";

            Musteri musteri2 = new Musteri();

            musteri2.Id         = 00002;
            musteri2.musteriAdi = "Mehmet Ali";
            musteri2.tcNo       = "14552554441";
            musteri2.dogumYili  = "08.04.1995";

            Musteri musteri3 = new Musteri();

            musteri3.Id         = 00003;
            musteri3.musteriAdi = "Tuğba Akgündüz";
            musteri3.tcNo       = "14552554441";
            musteri3.dogumYili  = "20.09.1993";


            Musteri[] musteriler = new Musteri[] { musteri1, musteri2, musteri3 };

            MusteriManager musterim = new MusteriManager();

            musterim.MusteriEkle(musteriler[0]);
            musterim.MusteriEkle(musteriler[1]);
            musterim.MusteriEkle(musteriler[2]);

            musterim.MusteriListele(musteriler);

            musterim.MusteriSil(musteriler[0]);
            musterim.MusteriSil(musteriler[1]);
            musterim.MusteriSil(musteriler[2]);
        }
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.ID    = 0001;
            musteri1.Ad    = "Ahmet";
            musteri1.Soyad = "Soydan";
            musteri1.Sehir = "Zonguldak";
            musteri1.Tutar = 1500;

            Musteri musteri2 = new Musteri();

            musteri2.ID    = 0010;
            musteri2.Ad    = "Zeynep";
            musteri2.Soyad = "Güneş";
            musteri2.Sehir = "Ankara";
            musteri2.Tutar = 2000;


            Musteri musteri3 = new Musteri();

            musteri3.ID    = 0011;
            musteri3.Ad    = "Haydar";
            musteri3.Soyad = "Gündoğan";
            musteri3.Sehir = "Bursa";
            musteri3.Tutar = 4000;

            Musteri[] musteriler = new Musteri[]
            {
                musteri1, musteri2, musteri3
            };

            MusteriManager manager = new MusteriManager();

            manager.MusteriEkle(musteri2);

            Console.WriteLine("========================");
            manager.MusteriGuncelle(musteri3);
            Console.WriteLine("========================");
            manager.MusteriSil(musteri1);
            manager.MusteriListele(musteriler);

            Console.Read();
        }
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.Id     = 1;
            musteri1.TcNo   = "10000000000";
            musteri1.Ad     = "Alper Baha";
            musteri1.Soyad  = "GÜRSES";
            musteri1.Bakiye = 7500.53;

            Musteri musteri2 = new Musteri();

            musteri2.Id     = 2;
            musteri2.TcNo   = "10000000000";
            musteri2.Ad     = "Cemal";
            musteri2.Soyad  = "ARSÖZ";
            musteri2.Bakiye = 1698.47;

            Musteri musteri3 = new Musteri();

            musteri3.Id     = 3;
            musteri3.TcNo   = "10000000000";
            musteri3.Ad     = "İbrahim";
            musteri3.Soyad  = "BAYRAM";
            musteri3.Bakiye = 12359.08;

            Musteri[] musteriler = new Musteri[] { musteri1, musteri2, musteri3 };

            MusteriManager musteriManager = new MusteriManager();

            musteriManager.MusteriEkle(musteri1);
            musteriManager.MusteriBakiye(musteri1);
            musteriManager.MusteriSil(musteri1);

            Console.WriteLine("\n-------------Müsteriler--------------\n");

            foreach (Musteri musteri in musteriler)
            {
                Console.WriteLine("Musteri Bilgileri : " + musteri.Ad + " " + musteri.Soyad);
                Console.WriteLine("Bakiye : " + musteri.Bakiye + "\n");
            }
        }
Beispiel #9
0
        static void Main(string[] args)
        {
            Musteri musteri1 = new Musteri();

            musteri1.Ad        = "Selma";
            musteri1.Soyad     = "Altan";
            musteri1.Sehir     = "Mersin";
            musteri1.TelefonNo = "05369897847";
            musteri1.Maas      = "3525 TL";

            Musteri musteri2 = new Musteri();

            musteri2.Ad        = "Sena";
            musteri2.Soyad     = "Kalkan";
            musteri2.Sehir     = "Adana";
            musteri2.TelefonNo = "05364875247";
            musteri2.Maas      = "3200 TL";

            Musteri musteri3 = new Musteri();

            musteri3.Ad        = "Yasemin";
            musteri3.Soyad     = "Ayyıldız";
            musteri3.Sehir     = "İzmir";
            musteri3.TelefonNo = "0548785847";
            musteri3.Maas      = "8540 TL";

            Musteri musteri4 = new Musteri();

            musteri4.Ad        = "Sinem";
            musteri4.Soyad     = "Yılmaz";
            musteri4.Sehir     = "İstanbul";
            musteri4.TelefonNo = "0538575847";
            musteri4.Maas      = "7585 TL";


            List <Musteri> liste = new List <Musteri> {
                musteri1, musteri2, musteri3, musteri4
            };
            MusteriManager Ozellikler = new MusteriManager();

            Console.WriteLine("************************************************İlk Durum************************************************");
            Console.WriteLine("   ");
            Ozellikler.MusteriListele(liste);
            Console.WriteLine("************************************************İkinci Durum************************************************");
            Console.WriteLine("   ");
            Ozellikler.MusteriSil(liste, musteri4);
            Ozellikler.MusteriListele(liste);
            Console.WriteLine("************************************************ÜÇüncü Durum************************************************");
            Console.WriteLine("   ");

            Musteri musteri5 = new Musteri();

            musteri5.Ad        = "Hasan Emre";
            musteri5.Soyad     = "Alkan";
            musteri5.Sehir     = "Hatay";
            musteri5.TelefonNo = "0538585847";
            musteri5.Maas      = "0 TL" + " - " + "Garibanın yüzü gülür mü?";

            Ozellikler.MusteriEkle(liste, musteri5);
            Ozellikler.MusteriListele(liste);
        }