Ejemplo n.º 1
0
            static void InputAddress()
            {
                ClearView();
                Adddress addr = new Adddress();

                Console.WriteLine("이름 입력:");
                addr.Name = Console.ReadLine();
                Console.WriteLine("전화 입력:");
                addr.phone = Console.ReadLine();
                Console.WriteLine("주소 입력:");
                addr.address = Console.ReadLine();

                listAddress.Add(addr);
            }
Ejemplo n.º 2
0
            static void SearchAddress()
            {
                ClearView();
                Console.WriteLine("이름 입력 :");
                string name = Console.ReadLine();

                for (int i = 0; i < listAddress.Count; i++)
                {
                    Adddress addr = listAddress[i];
                    Console.WriteLine("이름 :" + addr.Name);
                    Console.WriteLine("전화" + addr.phone);
                    Console.WriteLine("주소" + addr.address);
                    break;
                }
            }