public void addDetails(customerDetails detail)
 {
     details.Add(new customerDetails()
     {
         Name = detail.Name, Id = detail.Id, Address = detail.Address
     });
     deleCount(this, new EventArgs());
 }
예제 #2
0
        public customerDetails getUserInputDetails()
        {
            customerDetails detail = new customerDetails();

            Console.WriteLine("Enter your Name :");
            var name = Console.ReadLine();

            Console.WriteLine("Enter your Id :");
            var line = Console.ReadLine();
            var id   = int.Parse(line);

            Console.WriteLine("Enter your address :");
            var address = Console.ReadLine();


            detail.Name    = name;
            detail.Id      = id;
            detail.Address = address;

            return(detail);
        }