private void LoadOrderDetail(int orderId) { Order order = orderManager.GetOrderById(orderId); if (!ParentPanel.Contains(orderDetails)) { orderDetails = new OrderDetail(); orderDetails.Name = "OrderDetailForDesigner"; orderDetails.ParentPanel = ParentPanel; orderDetails.NavigationBar = NavigationBar; orderDetails.employee = employee; orderDetails.Dock = DockStyle.Fill; orderDetails.order = order; ParentPanel.Controls.Add(orderDetails); } orderDetails.order = order; orderDetails.Show(); orderDetails.ClearContent(); orderDetails.employee = employee; orderDetails.LoadDetailInformation(); orderDetails.LoadReVisit(); }
private void LoadOrderDetail(int orderId) { Order order = orderManager.GetOrderById(orderId); if (_informationAssistant == null) { _informationAssistant = customerTraceManager.GetInformationAssistantByOrderId(orderId); } if (!ParentPanel.Contains(modifyCustomer)) { orderDetail = new OrderDetail(); orderDetail.Name = "orderDetail"; orderDetail.ParentPanel = ParentPanel; orderDetail.NavigationBar = NavigationBar; orderDetail.employee = employee; orderDetail.Dock = DockStyle.Fill; orderDetail.order = order; ParentPanel.Controls.Add(orderDetail); } else { orderDetail.Show(); orderDetail.ClearContent(); } orderDetail.LoadDetailInformation(); orderDetail.order = order; orderDetail.LoadReVisit(); }