예제 #1
0
파일: address.cs 프로젝트: zaieda/RetailPOS
        private void Fixuptown_city(town_city previousValue)
        {
            if (previousValue != null && previousValue.addresses.Contains(this))
            {
                previousValue.addresses.Remove(this);
            }

            if (town_city != null)
            {
                if (!town_city.addresses.Contains(this))
                {
                    town_city.addresses.Add(this);
                }
                if (town_city_id != town_city.id)
                {
                    town_city_id = town_city.id;
                }
            }
            else if (!_settingFK)
            {
                town_city_id = null;
            }
        }
예제 #2
0
파일: address.cs 프로젝트: njmube/RetailPOS
        private void Fixuptown_city(town_city previousValue)
        {
            if (previousValue != null && previousValue.addresses.Contains(this))
            {
                previousValue.addresses.Remove(this);
            }

            if (town_city != null)
            {
                if (!town_city.addresses.Contains(this))
                {
                    town_city.addresses.Add(this);
                }
                if (town_city_id != town_city.id)
                {
                    town_city_id = town_city.id;
                }
            }
            else if (!_settingFK)
            {
                town_city_id = null;
            }
        }