Пример #1
0
        private void Fixupv_Customer(v_Customer previousValue)
        {
            if (previousValue != null && previousValue.v_Customer_Vehicle.Contains(this))
            {
                previousValue.v_Customer_Vehicle.Remove(this);
            }

            if (v_Customer != null)
            {
                if (!v_Customer.v_Customer_Vehicle.Contains(this))
                {
                    v_Customer.v_Customer_Vehicle.Add(this);
                }
                if (customer_id != v_Customer.customer_id)
                {
                    customer_id = v_Customer.customer_id;
                }
            }
        }
Пример #2
0
        private void Fixupv_Customer(v_Customer previousValue)
        {
            if (previousValue != null && previousValue.v_Customer_Vehicle.Contains(this))
            {
                previousValue.v_Customer_Vehicle.Remove(this);
            }

            if (v_Customer != null)
            {
                if (!v_Customer.v_Customer_Vehicle.Contains(this))
                {
                    v_Customer.v_Customer_Vehicle.Add(this);
                }
                if (customer_id != v_Customer.customer_id)
                {
                    customer_id = v_Customer.customer_id;
                }
            }
        }