public static void CreateNewAddrDongScreen(OrderScreen target) { ButtonSelectScreen addrDongScr = new ButtonSelectScreen(); foreach (var p in DataManager.AddressGetListByGu(target.OrderData.Customer.AddrGugun)) { addrDongScr.panelAddr.Children.Add(btnCreator.btnAddAddrDong(140, 210, 40, p)); } addrDongScr.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(address_PreviewMouseDown); addrDongScr.ShowDialog(); if (addrDongScr.Data != "취소") { target.OrderData.Customer.AddrDong = addrDongScr.Data; } }
public static void CreateNewAddrGuScreen(OrderDetailScreen target) { ButtonSelectScreen addrGuScr = new ButtonSelectScreen(); addrGuScr.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(address_PreviewMouseDown); foreach (var p in DataManager.AddrGetGuList()) { addrGuScr.panelAddr.Children.Add(btnCreator.btnAddAddrGu(250, 250, 70, p)); // false is Gu mode } addrGuScr.ShowDialog(); if (addrGuScr.Data != "취소") { target.OrderData.Customer.AddrGugun = addrGuScr.Data; } }