Exemplo n.º 1
0
        static void Main(string[] args)
        {
            ClientDemo client1 = new ClientDemo();

            client1.Name    = "Emre";
            client1.Surname = "Atınç";
            client1.Id      = 1111;

            ClientDemo client2 = new ClientDemo();

            client2.Name    = "Sonay";
            client2.Surname = "Ergunlu";
            client2.Id      = 2222;

            ClientDemo[] clientsdemo = new ClientDemo[] { client1, client2 };

            MusteriManager musteriManager = new MusteriManager();

            foreach (var client in clientsdemo)

            {
                musteriManager.Ekle(client);
            }


            foreach (var client in clientsdemo)

            {
                musteriManager.Ekle(client);
            }
        }
Exemplo n.º 2
0
 public void Listele(ClientDemo client)
 {
     Console.WriteLine("----Müşteri Bilgisi------");
     Console.WriteLine("Name " + client.Name);
     Console.WriteLine("Surname " + client.Surname);
     Console.WriteLine("Id " + client.Id);
     Console.WriteLine("----------------------------");
 }
Exemplo n.º 3
0
 public void Ekle(ClientDemo client)
 {
     Console.WriteLine("Sitemize Hoşgeldiniz " + client.Name + " " + client.Surname);
 }
Exemplo n.º 4
0
 public void Silme(ClientDemo client)
 {
     Console.WriteLine("Hesap Silindi " + client.Name + " " + client.Surname);
 }