static void Main(string[] args) { AddressView addrView = new AddressView(); addrView.SetAddressManager(new AddressManager()); addrView.MainLoop(); }
static void Main(string[] args) { AddressManager addrMgr = new AddressManager(); AddressView addrView = new AddressView(addrMgr); addrView.MainLoop(); }
public void PrintAllAddress() { for (int i = 0; i < listAddress.Count; i++) { Address addr = listAddress[i]; AddressView.PrintAddressInfo(addr); } Console.WriteLine("주소 전체 출력 처리 ~ "); }
public void SearchAddress() { Console.Write("검색할 이름 입력 >> "); string name = Console.ReadLine(); for (int i = 0; i < listAddress.Count; i++) { Address addr = listAddress[i]; if (addr.Name == name) { AddressView.PrintAddressInfo(addr); break; } } Console.WriteLine("주소 검색 처리 ~ "); }
static void Main(string[] args) { AddressView addrView = new AddressView(); addrView.MainLoop(); }