Exemple #1
0
 public void List(Costumer costumer)
 {
     Console.WriteLine("Müşterinin  ID:" + costumer.Id);
     Console.WriteLine("Müşterinin  Adı:" + costumer.Name);
     Console.WriteLine("Müşterinin  Soyadı:" + costumer.SurName);
     Console.WriteLine("Müşterinin  Mesleği:" + costumer.Jop);
 }
Exemple #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);
        }
        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);
        }
Exemple #4
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);
        }
 public void AddCostumer()
 {
     Costumer costumer = new Costumer();
     Console.WriteLine("Enter Customer ID:\n");
     costumer.CostumerId = Convert.ToInt32(Console.ReadLine());
     Console.WriteLine("Enter Customer Name:");
     costumer.CostumerName = Console.ReadLine();
     Console.WriteLine("Enter Customer Surname:");
     costumer.CostumerSurname = Console.ReadLine();
     Console.WriteLine("Enter Customer Adress:");
     costumer.CostumerAdress = Console.ReadLine();
     _costumers.Add(costumer);
     
 }
        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);
        }
Exemple #7
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);
        }
Exemple #8
0
 public void MakeLists(Costumer costumer)
 {
     Costumer[] costumers = new Costumer[] { costumer };
     Console.WriteLine(costumer.Name + " " + costumer.Lastname + " Listeye eklendi");
 }
 public void PrintCostumerName(Costumer costumer)
 {
     Console.WriteLine(costumer.CostumerName + ' ' + costumer.CostumerSurname);
 }
Exemple #10
0
 public void Add(Costumer costumer)
 {
     Console.WriteLine("Eklenen Yeni müşteri: " + costumer.Name + "=> " + costumer.Jop);
 }
Exemple #11
0
 public void Listele(Costumer costumer)
 {
     Console.WriteLine(costumer.CostumerName);
 }
Exemple #12
0
 public void Add(Costumer costumer)
 {
     Console.WriteLine("eklendi  : " + costumer.CostumerName + " " + costumer.CostumerLastName + " " + costumer.CostumerId);
 }
 public void AddCostumer(Costumer costumer)
 {
     Console.WriteLine(costumer.Name + " " + costumer.Surname + " sisteme eklendi! ");
 }
Exemple #14
0
 public void Delete(Costumer costumer)
 {
     Console.WriteLine("Silindi :" + costumer.CostumerName + " " + costumer.CostumerLastName + " " + costumer.CostumerId);
 }
 public void DeleteCostumer(Costumer costumer)
 {
     Console.WriteLine(costumer.Name + " " + costumer.Surname + " sistemden silindi! ");
 }
Exemple #16
0
 public void Sil(Costumer costumer)
 {
     Console.WriteLine("Müşteri Silindi : " + costumer.Adi + " " + costumer.Soyadi + " " + costumer.Id);
 }
Exemple #17
0
 public void Added(Costumer costomer)
     {
     Console.WriteLine(");
 }
Exemple #18
0
 public void DelCostumer(Costumer costumer)
 {
     Console.WriteLine(costumer.Name + " " + costumer.Lastname + " " + "silindi.");
 }
Exemple #19
0
 public void Ekle(Costumer costumer)
 {
     Console.WriteLine("Müşteri Eklendi : " + costumer.Adi + " " + costumer.Soyadi);
 }
Exemple #20
0
 public void AddCostumer(Costumer costumer)
 {
     Console.WriteLine(costumer.Name + " " + costumer.Lastname + " " + "eklendi.");
 }
Exemple #21
0
 public void Delete(Costumer costumer)
 {
     Console.WriteLine(costumer.Name + " müşteri silindi");
 }