private void Save()
        {
            dpBindingSource.EndEdit();
            DeliveryPoint deliverypoint = dpBindingSource.Current as DeliveryPoint;

            //BindingList<DeliveryPoint> OrderList = (BindingList<DeliveryPoint>)userBindingSource.DataSource;
            //DeliveryPoint DeliveryPoint = OrderList[userBindingSource.Position];

            DeliveryPoint.SaveEntity(deliverypoint);

            BindingList <DeliveryPoint> orderList = new BindingList <DeliveryPoint>(DeliveryPoint.GetEntityList());

            dpBindingSource.DataSource = orderList;

            MessageBox.Show("Delivery Point was saved.");
        }
        private void SetupBindings()
        {
            BindingList <DeliveryPoint> deliverypointList = new BindingList <DeliveryPoint>(DeliveryPoint.GetEntityList());

            dpBindingSource.DataSource = deliverypointList;
        }